mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
31 lines
998 B
Diff
31 lines
998 B
Diff
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);
|