cpupower : frequency-set -r option misses the last cpu in related cpu list
authorAbhishek Goel <huntbag@linux.vnet.ibm.com>
Wed, 29 May 2019 09:30:33 +0000 (04:30 -0500)
committerShuah Khan <skhan@linuxfoundation.org>
Tue, 4 Jun 2019 15:06:50 +0000 (09:06 -0600)
commit04507c0a9385cc8280f794a36bfff567c8cc1042
treee05f8f6fa933da5abf7b2f2eaeb559b0ebd1d12b
parentbd59ffb23b9de82d2ad3d2cd752520de245780c6
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 <huntbag@linux.vnet.ibm.com>
Reviewed-by: Thomas Renninger <trenn@suse.de>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/power/cpupower/utils/cpufreq-set.c