Skip to content

Commit

Permalink
[Build] Prevent a collision with 6.11 kernel macro WRMSRNS
Browse files Browse the repository at this point in the history
  • Loading branch information
cyring committed Sep 19, 2024
1 parent 92ff25b commit 4515f5d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions x86_64/corefreq-cli-json.c
Original file line number Diff line number Diff line change
Expand Up @@ -952,7 +952,7 @@ void JsonSysInfo(RO(SHM_STRUCT) *RO(Shm))
json_key(&s, "LKGS");
json_literal(&s, "%u", (unsigned) RO(Shm)->Proc.Features.ExtFeature_Leaf1_EAX.LKGS);
json_key(&s, "WRMSRNS");
json_literal(&s, "%u", (unsigned) RO(Shm)->Proc.Features.ExtFeature_Leaf1_EAX.WRMSRNS);
json_literal(&s, "%u", (unsigned) RO(Shm)->Proc.Features.ExtFeature_Leaf1_EAX.WRMSRNS_Inst);
json_key(&s, "AMX_FP16");
json_literal(&s, "%u", (unsigned) RO(Shm)->Proc.Features.ExtFeature_Leaf1_EAX.AMX_FP16);
json_key(&s, "HRESET");
Expand All @@ -962,7 +962,7 @@ void JsonSysInfo(RO(SHM_STRUCT) *RO(Shm))
json_key(&s, "LAM");
json_literal(&s, "%u", (unsigned) RO(Shm)->Proc.Features.ExtFeature_Leaf1_EAX.LAM);
json_key(&s, "RDMSRLIST");
json_literal(&s, "%u", (unsigned) RO(Shm)->Proc.Features.ExtFeature_Leaf1_EAX.RDMSRLIST);
json_literal(&s, "%u", (unsigned) RO(Shm)->Proc.Features.ExtFeature_Leaf1_EAX.RDMSRLIST_Inst);

json_end_object(&s);
}
Expand Down
4 changes: 2 additions & 2 deletions x86_64/coretypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -1468,14 +1468,14 @@ typedef struct /* Extended Feature Flags Enumeration Leaf 1 */
Reserved3 : 17-13,
FRED : 18-17, /* Flexible Return and Event Delivery*/
LKGS : 19-18, /* Load Kernel GS segment register */
WRMSRNS : 20-19, /* Sierra Forest, Grand Ridge */
WRMSRNS_Inst : 20-19, /* Sierra Forest, Grand Ridge */
NMI_SRC : 21-20, /* NMI-source reporting */
AMX_FP16 : 22-21, /* Granite Rapids */
HRESET : 23-22, /* History Reset instruction */
AVX_IFMA : 24-23, /* Sierra Forest, Grand Ridge */
Reserved4 : 26-24,
LAM : 27-26, /* Linear Address Masking */
RDMSRLIST : 28-27, /* Sierra Forest, Grand Ridge */
RDMSRLIST_Inst : 28-27, /* Sierra Forest, Grand Ridge */
Reserved5 : 30-28,
INVD_DISABLE : 31-30,
Reserved6 : 32-31;
Expand Down

0 comments on commit 4515f5d

Please sign in to comment.