Skip to content

Commit b872b4f

Browse files
committed
Fix: One more boost check
Fixes incorrect max frequency validation errors for certain CPUs with the special "reduced frequency".
1 parent 068ec68 commit b872b4f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/service-app/classes/CpuWorker.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -235,10 +235,9 @@ export class CpuWorker extends DaemonWorker {
235235
const maxFreq = core.scalingMaxFreq.readValue();
236236
let maxFreqProfile = profile.cpu.scalingMaxFrequency;
237237
if (maxFreqProfile === -1) {
238-
if (this.cpuCtrl.boost === undefined) {
238+
if (!this.cpuCtrl.boost.isAvailable()) {
239239
maxFreqProfile = core.getReducedAvailableFreq();
240-
}
241-
else {
240+
} else {
242241
maxFreqProfile = coreMaxFreq;
243242
}
244243
} else if (maxFreqProfile === undefined || maxFreqProfile > coreMaxFreq || profile.cpu.useMaxPerfGov) {

0 commit comments

Comments
 (0)