diff options
author | Jeff Fan <jeff.fan@intel.com> | 2016-03-02 10:00:31 +0800 |
---|---|---|
committer | Hao Wu <hao.a.wu@intel.com> | 2016-03-03 09:47:28 +0800 |
commit | d02317febbf5eb54fa9f2b9f1a01e2ea2fa7dac7 (patch) | |
tree | 18ba806706177879236ca3c9ebb0f0619cc2303e /UefiCpuPkg | |
parent | 5729f0ca6212c01102ec82a8991ae195ef2ca998 (diff) | |
download | edk2-platforms-d02317febbf5eb54fa9f2b9f1a01e2ea2fa7dac7.tar.xz |
UefiCpuPkg/Application/Cpuid: Remove unnecessary code check
gMaximumBasicFunction is set to CPUID_SIGNATURE as below, so removed the compare
code.
UINT32 gMaximumBasicFunction = CPUID_SIGNATURE;
Cc: Qiu Shumin <shumin.qiu@intel.com>
Cc: Michael Kinney <michael.d.kinney@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan <jeff.fan@intel.com>
Reviewed-by: Qiu Shumin <shumin.qiu@intel.com>
Reviewed-by: Michael Kinney <michael.d.kinney@intel.com>
(cherry picked from commit 2bdc0de6a525d48f4a74fb01351d53085ecaa281)
Diffstat (limited to 'UefiCpuPkg')
-rw-r--r-- | UefiCpuPkg/Application/Cpuid/Cpuid.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/UefiCpuPkg/Application/Cpuid/Cpuid.c b/UefiCpuPkg/Application/Cpuid/Cpuid.c index 366c3ca205..b05da3ee0c 100644 --- a/UefiCpuPkg/Application/Cpuid/Cpuid.c +++ b/UefiCpuPkg/Application/Cpuid/Cpuid.c @@ -213,10 +213,6 @@ CpuidVersionInfo ( UINTN DisplayFamily;
UINTN DisplayModel;
- if (CPUID_VERSION_INFO > gMaximumBasicFunction) {
- return;
- }
-
AsmCpuid (CPUID_VERSION_INFO, &Eax.Uint32, &Ebx.Uint32, &Ecx.Uint32, &Edx.Uint32);
Print (L"CPUID_VERSION_INFO (Leaf %08x)\n", CPUID_VERSION_INFO);
|