X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=UefiCpuPkg%2FLibrary%2FCpuCommonFeaturesLib%2FPendingBreak.c;h=2e0d2bdeca9d95623c1fa9b49dc6ac5f8c83610b;hp=8cafba4f4a87991206605c96d23b821bd5aa43d7;hb=d28daaddb3e732468e930a809d3d3943a5de9558;hpb=38381e18bf08dadad91627949996d106612f4753 diff --git a/UefiCpuPkg/Library/CpuCommonFeaturesLib/PendingBreak.c b/UefiCpuPkg/Library/CpuCommonFeaturesLib/PendingBreak.c index 8cafba4f4a..2e0d2bdeca 100644 --- a/UefiCpuPkg/Library/CpuCommonFeaturesLib/PendingBreak.c +++ b/UefiCpuPkg/Library/CpuCommonFeaturesLib/PendingBreak.c @@ -74,6 +74,17 @@ PendingBreakInitialize ( IN BOOLEAN State ) { + // + // The scope of the MSR_ATOM_IA32_MISC_ENABLE is core for below processor type, only program + // MSR_ATOM_IA32_MISC_ENABLE for thread 0 in each core. + // + // Support function has check the processer type for this feature, no need to check again + // here. + // + if (CpuInfo->ProcessorInfo.Location.Thread != 0) { + return RETURN_SUCCESS; + } + // // ATOM, CORE2, CORE, PENTIUM_4 and IS_PENTIUM_M_PROCESSOR have the same MSR index, // Simply use MSR_ATOM_IA32_MISC_ENABLE here