cpupower: Do not change the frequency of offline cpu
authorShilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com>
Thu, 23 Jul 2015 06:50:27 +0000 (12:20 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 23 Jul 2015 18:40:51 +0000 (20:40 +0200)
commit2e5e8fd1ff9d802ab74df1ceaa5243da30491a45
tree17ef07278e16b9ad1fd0ce440725788e05a52db8
parent52721d9d3334c1cb1f76219a161084094ec634dc
cpupower: Do not change the frequency of offline cpu

Check if the cpu is online before changing the frequency/governor of
the cpu.

Reported-by: Pavaman Subramaniyam <pavsubra@linux.vnet.ibm.com>
Signed-off-by: Shilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com>
Reviewed-by: Gautham R. Shenoy <ego@linux.vnet.ibm.com>
Acked-by: Thomas Renninger <trenn@suse.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
tools/power/cpupower/utils/cpufreq-set.c