Skip to content

Commit

Permalink
cpu: fix governor wont apply for offline cpus
Browse files Browse the repository at this point in the history
The code only checked for online cpus, although we want
to set the governor to each available cpu.

Signed-off-by: Blechd0se <alex.christ@hotmail.de>
  • Loading branch information
Blechd0se committed Sep 3, 2014
1 parent 5e1496f commit 2f04c1d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions AeroControl/src/com/aero/control/fragments/CPUFragment.java
Expand Up @@ -532,8 +532,7 @@ public void setGovernor(String s) {

// Change governor for each available CPU;
for (int k = 0; k < mNumCpus; k++) {
// To ensure we get proper permissions, change the governor to performance first;
//array.add("echo " + "performance" + " > " + CPU_BASE_PATH + k + CURRENT_GOV_AVAILABLE);
array.add("echo 1 > " + AeroActivity.files.CPU_BASE_PATH + k + "/online");
array.add("echo " + s + " > " + AeroActivity.files.CPU_BASE_PATH + k + AeroActivity.files.CURRENT_GOV_AVAILABLE);
}
String[] commands = array.toArray(new String[0]);
Expand Down

0 comments on commit 2f04c1d

Please sign in to comment.