forked from NG-SD-Plugins/PowerTools
Enable all-cpu governor dropdown by default for SD
This commit is contained in:
parent
6d88d6e44f
commit
66f367e1d2
3 changed files with 3 additions and 3 deletions
|
@ -73,7 +73,7 @@ impl Default for CpusLimits {
|
||||||
fn default() -> Self {
|
fn default() -> Self {
|
||||||
Self {
|
Self {
|
||||||
cpus: [(); 8].iter().map(|_| CpuLimits::default()).collect(),
|
cpus: [(); 8].iter().map(|_| CpuLimits::default()).collect(),
|
||||||
global_governors: false,
|
global_governors: true,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -104,7 +104,7 @@
|
||||||
"skip_resume_reclock": false
|
"skip_resume_reclock": false
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"global_governors": false
|
"global_governors": true
|
||||||
},
|
},
|
||||||
"gpu": {
|
"gpu": {
|
||||||
"fast_ppt": {
|
"fast_ppt": {
|
||||||
|
|
|
@ -238,7 +238,7 @@ export class Cpus extends Component<backend.IdcProps, CpuState> {
|
||||||
const governors = get_value(GOVERNOR_CPU);
|
const governors = get_value(GOVERNOR_CPU);
|
||||||
for (let i = 0; i < total_cpus; i++) {
|
for (let i = 0; i < total_cpus; i++) {
|
||||||
governors[i] = elem.data as string;
|
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);
|
set_value(GOVERNOR_CPU, governors);
|
||||||
reloadGUI("CPUGlobalGovernor");
|
reloadGUI("CPUGlobalGovernor");
|
||||||
|
|
Loading…
Reference in a new issue