Skip to content

Commit 4515f5d

Browse files
committed
[Build] Prevent a collision with 6.11 kernel macro WRMSRNS
1 parent 92ff25b commit 4515f5d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

x86_64/corefreq-cli-json.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -952,7 +952,7 @@ void JsonSysInfo(RO(SHM_STRUCT) *RO(Shm))
952952
json_key(&s, "LKGS");
953953
json_literal(&s, "%u", (unsigned) RO(Shm)->Proc.Features.ExtFeature_Leaf1_EAX.LKGS);
954954
json_key(&s, "WRMSRNS");
955-
json_literal(&s, "%u", (unsigned) RO(Shm)->Proc.Features.ExtFeature_Leaf1_EAX.WRMSRNS);
955+
json_literal(&s, "%u", (unsigned) RO(Shm)->Proc.Features.ExtFeature_Leaf1_EAX.WRMSRNS_Inst);
956956
json_key(&s, "AMX_FP16");
957957
json_literal(&s, "%u", (unsigned) RO(Shm)->Proc.Features.ExtFeature_Leaf1_EAX.AMX_FP16);
958958
json_key(&s, "HRESET");
@@ -962,7 +962,7 @@ void JsonSysInfo(RO(SHM_STRUCT) *RO(Shm))
962962
json_key(&s, "LAM");
963963
json_literal(&s, "%u", (unsigned) RO(Shm)->Proc.Features.ExtFeature_Leaf1_EAX.LAM);
964964
json_key(&s, "RDMSRLIST");
965-
json_literal(&s, "%u", (unsigned) RO(Shm)->Proc.Features.ExtFeature_Leaf1_EAX.RDMSRLIST);
965+
json_literal(&s, "%u", (unsigned) RO(Shm)->Proc.Features.ExtFeature_Leaf1_EAX.RDMSRLIST_Inst);
966966

967967
json_end_object(&s);
968968
}

x86_64/coretypes.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -1468,14 +1468,14 @@ typedef struct /* Extended Feature Flags Enumeration Leaf 1 */
14681468
Reserved3 : 17-13,
14691469
FRED : 18-17, /* Flexible Return and Event Delivery*/
14701470
LKGS : 19-18, /* Load Kernel GS segment register */
1471-
WRMSRNS : 20-19, /* Sierra Forest, Grand Ridge */
1471+
WRMSRNS_Inst : 20-19, /* Sierra Forest, Grand Ridge */
14721472
NMI_SRC : 21-20, /* NMI-source reporting */
14731473
AMX_FP16 : 22-21, /* Granite Rapids */
14741474
HRESET : 23-22, /* History Reset instruction */
14751475
AVX_IFMA : 24-23, /* Sierra Forest, Grand Ridge */
14761476
Reserved4 : 26-24,
14771477
LAM : 27-26, /* Linear Address Masking */
1478-
RDMSRLIST : 28-27, /* Sierra Forest, Grand Ridge */
1478+
RDMSRLIST_Inst : 28-27, /* Sierra Forest, Grand Ridge */
14791479
Reserved5 : 30-28,
14801480
INVD_DISABLE : 31-30,
14811481
Reserved6 : 32-31;

0 commit comments

Comments
 (0)