Enable all-cpu governor dropdown by default for SD

This commit is contained in:
NGnius (Graham) 2023-02-20 14:42:38 -05:00
parent 6d88d6e44f
commit 66f367e1d2
3 changed files with 3 additions and 3 deletions

View file

@ -73,7 +73,7 @@ impl Default for CpusLimits {
fn default() -> Self {
Self {
cpus: [(); 8].iter().map(|_| CpuLimits::default()).collect(),
global_governors: false,
global_governors: true,
}
}
}

View file

@ -104,7 +104,7 @@
"skip_resume_reclock": false
}
],
"global_governors": false
"global_governors": true
},
"gpu": {
"fast_ppt": {

View file

@ -238,7 +238,7 @@ export class Cpus extends Component<backend.IdcProps, CpuState> {
const governors = get_value(GOVERNOR_CPU);
for (let i = 0; i < total_cpus; i++) {
governors[i] = elem.data as string;
backend.resolve(backend.setCpuGovernor(i, elem.data as string), (_: string) => {});
backend.resolve(backend.setCpuGovernor(i, governors[i]), (_: string) => {});
}
set_value(GOVERNOR_CPU, governors);
reloadGUI("CPUGlobalGovernor");