#define EFI_CPUID_MODEL 0x00F0\r
#define EFI_CPUID_STEPPING 0x000F\r
\r
-\r
-\r
EFI_STATUS \r
EFIAPI\r
PpmPolicyEntry(\r
IN EFI_SYSTEM_TABLE *SystemTable\r
)\r
{\r
+ EFI_BOOT_SERVICES *pBS;\r
EFI_MP_SERVICES_PROTOCOL *MpService;\r
EFI_CPUID_REGISTER Cpuid01 = { 0, 0, 0, 0};\r
EFI_HANDLE Handle;\r
EFI_STATUS Status;\r
UINTN CpuCount;\r
- UINT64 MaxRatio;\r
UINT8 CPUMobileFeature;\r
\r
PCH_STEPPING Stepping;\r
\r
-\r
- gBS = SystemTable->BootServices;\r
pBS = SystemTable->BootServices;\r
- pRS = SystemTable->RuntimeServices;\r
\r
//\r
// Set PPM policy structure to known value\r
//\r
- gBS->SetMem (&mDxePlatformPpmPolicy, sizeof(PPM_PLATFORM_POLICY_PROTOCOL), 0);\r
+ pBS->SetMem (&mDxePlatformPpmPolicy, sizeof(PPM_PLATFORM_POLICY_PROTOCOL), 0);\r
\r
//\r
// Find the MpService Protocol\r
// Store the CPUID for use by SETUP items.\r
//\r
AsmCpuid (EFI_CPUID_VERSION_INFO, &Cpuid01.RegEax, &Cpuid01.RegEbx, &Cpuid01.RegEcx, &Cpuid01.RegEdx);\r
- MaxRatio = ((RShiftU64 (AsmReadMsr64(EFI_MSR_IA32_PLATFORM_ID), 8)) & 0x1F);\r
-\r
\r
mDxePlatformPpmPolicy.Revision = PPM_PLATFORM_POLICY_PROTOCOL_REVISION_4;\r
\r
mDxePlatformPpmPolicy.S3RestoreMsrSwSmiNumber = S3_RESTORE_MSR_SW_SMI;\r
\r
Handle = NULL;\r
- Status = gBS->InstallMultipleProtocolInterfaces (\r
+ Status = pBS->InstallMultipleProtocolInterfaces (\r
&Handle,\r
&gPpmPlatformPolicyProtocolGuid,\r
&mDxePlatformPpmPolicy,\r