]> www.infradead.org Git - users/dwmw2/linux.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 31 Jul 2019 05:28:23 +0000 (07:28 +0200)
commit26b900024f931c8456485f20e473cf86dc544d57
treec139349cef9ed612cd329c1f259746ae87eebecf
parent78632703b9e5cae69a9c4f2157c59208b75eecd3
cpupower : frequency-set -r option misses the last cpu in related cpu list

[ Upstream commit 04507c0a9385cc8280f794a36bfff567c8cc1042 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/power/cpupower/utils/cpufreq-set.c