]> git.proxmox.com Git - mirror_edk2.git/blobdiff - UefiCpuPkg/Library/CpuCommonFeaturesLib/PendingBreak.c
UefiCpuPkg/CpuCommonFeaturesLib: Register MSR base on scope Info.
[mirror_edk2.git] / UefiCpuPkg / Library / CpuCommonFeaturesLib / PendingBreak.c
index 8cafba4f4a87991206605c96d23b821bd5aa43d7..2e0d2bdeca9d95623c1fa9b49dc6ac5f8c83610b 100644 (file)
@@ -74,6 +74,17 @@ PendingBreakInitialize (
   IN BOOLEAN                           State\r
   )\r
 {\r
+  //\r
+  // The scope of the MSR_ATOM_IA32_MISC_ENABLE is core for below processor type, only program\r
+  // MSR_ATOM_IA32_MISC_ENABLE for thread 0 in each core.\r
+  //\r
+  // Support function has check the processer type for this feature, no need to check again\r
+  // here.\r
+  //\r
+  if (CpuInfo->ProcessorInfo.Location.Thread != 0) {\r
+    return RETURN_SUCCESS;\r
+  }\r
+\r
   //\r
   // ATOM, CORE2, CORE, PENTIUM_4 and IS_PENTIUM_M_PROCESSOR have the same MSR index,\r
   // Simply use MSR_ATOM_IA32_MISC_ENABLE here\r