Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[ACPI] fix passive cooling regression

Return logic was inverted.
Going for changing the return value to not return zero as it is makes
more sense regarding the naming of the function (cpu_has_cpufreq()).

http://bugzilla.kernel.org/show_bug.cgi?id=3410

Signed-off-by: Thomas Renninger <trenn@suse.de>
Signed-off-by: Len Brown <len.brown@intel.com>

authored by

Thomas Renninger and committed by
Len Brown
75b245b3 b05948d9

+2 -2
+2 -2
drivers/acpi/processor_thermal.c
··· 102 102 { 103 103 struct cpufreq_policy policy; 104 104 if (!acpi_thermal_cpufreq_is_init || cpufreq_get_policy(&policy, cpu)) 105 - return -ENODEV; 106 - return 0; 105 + return 0; 106 + return 1; 107 107 } 108 108 109 109 static int acpi_thermal_cpufreq_increase(unsigned int cpu)