mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
cpupower : frequency-set -r option misses the last cpu in related cpu list
To set frequency on specific cpus using cpupower, following syntax can be used : cpupower -c #i frequency-set -f #f -r While setting frequency using cpupower frequency-set command, if we use '-r' option, it is expected to set frequency for all cpus related to cpu #i. But it is observed to be missing the last cpu in related cpu list. This patch fixes the problem. Signed-off-by: Abhishek Goel <[email protected]> Reviewed-by: Thomas Renninger <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
This commit is contained in:
parent
bd59ffb23b
commit
04507c0a93
1 changed files with 2 additions and 0 deletions
|
|
@ -305,6 +305,8 @@ int cmd_freq_set(int argc, char **argv)
|
|||
bitmask_setbit(cpus_chosen, cpus->cpu);
|
||||
cpus = cpus->next;
|
||||
}
|
||||
/* Set the last cpu in related cpus list */
|
||||
bitmask_setbit(cpus_chosen, cpus->cpu);
|
||||
cpufreq_put_related_cpus(cpus);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue