UefiCpuPkg/CpuCacheInfoLib: Add MpService dependency
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3190 Add MpService dependency to enforce the executability of CpuCacheInfoLib. Signed-off-by: Jason Lou <yun.lou@intel.com> Reviewed-by: Ray Ni <ray.ni@intel.com> Cc: Eric Dong <eric.dong@intel.com> Cc: Laszlo Ersek <lersek@redhat.com> Cc: Rahul Kumar <rahul1.kumar@intel.com>
This commit is contained in:
@@ -346,8 +346,6 @@ CpuCacheInfoCollectCpuCacheInfoData (
|
||||
@retval EFI_INVALID_PARAMETER CpuCacheInfo is NULL while CpuCacheInfoCount contains the value
|
||||
greater than zero.
|
||||
@retval EFI_UNSUPPORTED Processor does not support CPUID_CACHE_PARAMS Leaf.
|
||||
@retval EFI_NOT_FOUND EDKII_PEI_MP_SERVICES2_PPI or EFI_MP_SERVICES_PROTOCOL interface
|
||||
is not found.
|
||||
@retval EFI_OUT_OF_RESOURCES Required resources could not be allocated.
|
||||
@retval EFI_BUFFER_TOO_SMALL CpuCacheInfoCount is too small to hold the response CpuCacheInfo
|
||||
array. CpuCacheInfoCount has been updated with the length needed
|
||||
@@ -384,10 +382,7 @@ GetCpuCacheInfo (
|
||||
//
|
||||
// Initialize COLLECT_CPUID_CACHE_DATA_CONTEXT.MpServices.
|
||||
//
|
||||
Status = CpuCacheInfoGetMpServices (&Context.MpServices);
|
||||
if (EFI_ERROR(Status)) {
|
||||
return Status;
|
||||
}
|
||||
CpuCacheInfoGetMpServices (&Context.MpServices);
|
||||
|
||||
NumberOfProcessors = CpuCacheInfoGetNumberOfProcessors (Context.MpServices);
|
||||
|
||||
|
Reference in New Issue
Block a user