diff options
author | CyrIng <labs@cyring.fr> | 2024-11-09 09:30:40 +0100 |
---|---|---|
committer | CyrIng <labs@cyring.fr> | 2024-11-09 09:30:40 +0100 |
commit | cb55c1b72686772c1cec104ea269ef8f8cfd82c8 (patch) | |
tree | 7734c9f285ab7fc8ceae1d87b7d507197751e8d5 | |
parent | 976cd051f4d72b303f08e1508f4a87a5266996f6 (diff) |
[UI] Increased max ratio in HWP condition to avoid a zero frequency
-rw-r--r-- | aarch64/corefreq-cli.c | 6 | ||||
-rw-r--r-- | x86_64/corefreq-cli.c | 6 |
2 files changed, 4 insertions, 8 deletions
diff --git a/aarch64/corefreq-cli.c b/aarch64/corefreq-cli.c index aadfc25..81fc4af 100644 --- a/aarch64/corefreq-cli.c +++ b/aarch64/corefreq-cli.c @@ -2907,8 +2907,7 @@ void Refresh_HWP_Cap_Freq(TGrid *grid, DATA_TYPE data[]) CFlop->Clock ); - const unsigned int maxRatio = MAXCLOCK_TO_RATIO(unsigned int, - CFlop->Clock.Hz); + const unsigned int maxRatio = 99; if (StrLenFormat(length, item, grid->cell.length + 1, "CPU #%-3u %7.2f (%3u) %7.2f (%3u) %7.2f (%3u) %7.2f (%3u)", @@ -3190,8 +3189,7 @@ REASON_CODE SysInfoPerfCaps( Window *win, CFlop->Clock ); - const unsigned int maxRatio = MAXCLOCK_TO_RATIO(unsigned int, - CFlop->Clock.Hz); + const unsigned int maxRatio = 99; GridCall( PUT(SCANKEY_NULL, HWP_Cap_Attr[bix], width, 3, diff --git a/x86_64/corefreq-cli.c b/x86_64/corefreq-cli.c index 535c160..75471a5 100644 --- a/x86_64/corefreq-cli.c +++ b/x86_64/corefreq-cli.c @@ -4714,8 +4714,7 @@ void Refresh_HWP_Cap_Freq(TGrid *grid, DATA_TYPE data[]) CFlop->Clock ); - const unsigned int maxRatio = MAXCLOCK_TO_RATIO(unsigned int, - CFlop->Clock.Hz); + const unsigned int maxRatio = 99; if (StrLenFormat(length, item, grid->cell.length + 1, "CPU #%-3u %7.2f (%3u) %7.2f (%3u) %7.2f (%3u) %7.2f (%3u)", @@ -5366,8 +5365,7 @@ REASON_CODE SysInfoPerfCaps( Window *win, CFlop->Clock ); - const unsigned int maxRatio = MAXCLOCK_TO_RATIO(unsigned int, - CFlop->Clock.Hz); + const unsigned int maxRatio = 99; GridCall( PUT(SCANKEY_NULL, HWP_Cap_Attr[bix], width, 3, |