diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2016-10-12 00:50:28 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2016-10-12 00:51:52 -0300 |
commit | e923e0eacc2450cdd36efefae84e195cc5e4cfe8 (patch) | |
tree | 7272a2a450d59e61076eb5834b8b7bd93d79b385 /libre/linux-libre-tools/01-cpupower-governor-fix.patch | |
parent | 7a230a20ce7b2fc091c895a47d17ebcca5d97e2a (diff) | |
download | abslibre-e923e0eacc2450cdd36efefae84e195cc5e4cfe8.tar.gz abslibre-e923e0eacc2450cdd36efefae84e195cc5e4cfe8.tar.bz2 abslibre-e923e0eacc2450cdd36efefae84e195cc5e4cfe8.zip |
linux-libre-tools-4.8_gnu-1: updating version
Diffstat (limited to 'libre/linux-libre-tools/01-cpupower-governor-fix.patch')
-rw-r--r-- | libre/linux-libre-tools/01-cpupower-governor-fix.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/libre/linux-libre-tools/01-cpupower-governor-fix.patch b/libre/linux-libre-tools/01-cpupower-governor-fix.patch new file mode 100644 index 000000000..714319ea0 --- /dev/null +++ b/libre/linux-libre-tools/01-cpupower-governor-fix.patch @@ -0,0 +1,31 @@ +diff --git a/tools/power/cpupower/utils/cpufreq-set.c b/tools/power/cpupower/utils/cpufreq-set.c +index b4bf769..f2d1bbd 100644 +--- a/tools/power/cpupower/utils/cpufreq-set.c ++++ b/tools/power/cpupower/utils/cpufreq-set.c +@@ -296,9 +296,10 @@ int cmd_freq_set(int argc, char **argv) + struct cpufreq_affected_cpus *cpus; + + if (!bitmask_isbitset(cpus_chosen, cpu) || +- cpupower_is_cpu_online(cpu)) ++ cpupower_is_cpu_online(cpu) != 1) + continue; + ++ + cpus = cpufreq_get_related_cpus(cpu); + if (!cpus) + break; +@@ -316,11 +317,10 @@ int cmd_freq_set(int argc, char **argv) + cpu <= bitmask_last(cpus_chosen); cpu++) { + + if (!bitmask_isbitset(cpus_chosen, cpu) || +- cpupower_is_cpu_online(cpu)) +- continue; +- +- if (cpupower_is_cpu_online(cpu) != 1) ++ cpupower_is_cpu_online(cpu) != 1) { ++ printf(_("Ignoring cpu: %d\n"), cpu); + continue; ++ } + + printf(_("Setting cpu: %d\n"), cpu); + ret = do_one_cpu(cpu, &new_pol, freq, policychange); |