]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Aug 2019 09:18:49 +0000 (11:18 +0200)
commit12e55abefbb2276fc86e47b74afd6ad521c911fd
tree8d9dfec6dac45b16b397043cf73099a3761fae9e
parent57470363c0f42d03bc202172ba6d8f915e3b3229
cpupower : frequency-set -r option misses the last cpu in related cpu list

BugLink: https://bugs.launchpad.net/bugs/1839036
[ 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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
tools/power/cpupower/utils/cpufreq-set.c