Skip to content
Commit c25badc9 authored by Laura Abbott's avatar Laura Abbott Committed by Rafael J. Wysocki
Browse files

cpupower: Correct return type of cpu_power_is_cpu_online() in cpufreq-set

When converting to a shared library in ac5a181d ("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: ac5a181d

 (cpupower: Add cpuidle parts into library)
Reported-by: default avatarJulian Seward <jseward@acm.org>
Signed-off-by: default avatarLaura Abbott <labbott@redhat.com>
Acked-by: default avatarThomas Renninger <trenn@suse.com>
Cc: 4.7+ <stable@vger.kernel.org> # 4.7+
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent a909d3e6
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment