linux/tools/power/cpupower/utils
Laura Abbott c25badc9ce cpupower: Correct return type of cpu_power_is_cpu_online() in cpufreq-set
When converting to a shared library in ac5a181d06 ("cpupower: Add
cpuidle parts into library"), cpu_freq_cpu_exists() was converted to
cpupower_is_cpu_online(). cpu_req_cpu_exists() returned 0 on success and
-ENOSYS on failure whereas cpupower_is_cpu_online returns 1 on success.
Check for the correct return value in cpufreq-set.

Link: https://bugzilla.redhat.com/show_bug.cgi?id=1374212
Fixes: ac5a181d06 (cpupower: Add cpuidle parts into library)
Reported-by: Julian Seward <jseward@acm.org>
Signed-off-by: Laura Abbott <labbott@redhat.com>
Acked-by: Thomas Renninger <trenn@suse.com>
Cc: 4.7+ <stable@vger.kernel.org> # 4.7+
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2016-11-01 06:16:52 +01:00
..
helpers cpupower: Add cpuidle parts into library 2016-04-28 16:02:29 +02:00
idle_monitor cpupower: Add cpuidle parts into library 2016-04-28 16:02:29 +02:00
builtin.h cpupower: Introduce idle-set subcommand and C-state enabling/disabling 2013-07-05 01:52:19 +02:00
cpufreq-info.c cpupower: Fix build error in cpufreq-info 2016-01-19 01:17:23 +01:00
cpufreq-set.c cpupower: Correct return type of cpu_power_is_cpu_online() in cpufreq-set 2016-11-01 06:16:52 +01:00
cpuidle-info.c cpupower: Add cpuidle parts into library 2016-04-28 16:02:29 +02:00
cpuidle-set.c cpupower: Add cpuidle parts into library 2016-04-28 16:02:29 +02:00
cpupower-info.c cpupower: Do not analyse offlined cpus 2015-12-03 02:30:30 +01:00
cpupower-set.c cpupower: Do not analyse offlined cpus 2015-12-03 02:30:30 +01:00
cpupower.c tools / cpupower: Correctly detect if running as root 2014-12-19 23:01:03 +01:00
version-gen.sh cpupowerutils: use kernel version-derived version string 2011-07-29 18:35:39 +02:00