Given that the max frequency is always active, the CPU frequency showned
on the CPU Information screen should be retrieved using the
CpuGetMaxFreq() function. The function will prioritize obtaining the max
frequency over the  CPU normal frequency.

Signed-off-by: Nhi Pham <n...@os.amperecomputing.com>
---
 Silicon/Ampere/AmpereAltraPkg/Drivers/PlatformInfoDxe/PlatformInfoDxe.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/Silicon/Ampere/AmpereAltraPkg/Drivers/PlatformInfoDxe/PlatformInfoDxe.c 
b/Silicon/Ampere/AmpereAltraPkg/Drivers/PlatformInfoDxe/PlatformInfoDxe.c
index 82d2cf131c16..4b677765cd0e 100644
--- a/Silicon/Ampere/AmpereAltraPkg/Drivers/PlatformInfoDxe/PlatformInfoDxe.c
+++ b/Silicon/Ampere/AmpereAltraPkg/Drivers/PlatformInfoDxe/PlatformInfoDxe.c
@@ -156,7 +156,7 @@ UpdatePlatformInfoScreen (
     );
 
   /* CPU clock */
-  UnicodeSPrint (Str, sizeof (Str), L"%dMHz", PlatformHob->CpuClk / 
MHZ_SCALE_FACTOR);
+  UnicodeSPrint (Str, sizeof (Str), L"%dMHz", CpuGetMaxFreq (0) / 
MHZ_SCALE_FACTOR);
   HiiSetString (
     HiiHandle,
     STRING_TOKEN (STR_PLATFORM_INFO_CPUCLK_VALUE),
-- 
2.25.1



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#120349): https://edk2.groups.io/g/devel/message/120349
Mute This Topic: https://groups.io/mt/107909936/21656
Group Owner: devel+ow...@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Reply via email to