[ACPI] fix passive cooling regression
authorThomas Renninger <trenn@suse.de>
Wed, 21 Dec 2005 06:29:00 +0000 (01:29 -0500)
committerLen Brown <len.brown@intel.com>
Fri, 23 Dec 2005 03:00:25 +0000 (22:00 -0500)
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>
drivers/acpi/processor_thermal.c

index f37584015324ac54b3471351dc4964170c467204..dc9817cfb882a87f6b640640aeb243988e059c3d 100644 (file)
@@ -102,8 +102,8 @@ static int cpu_has_cpufreq(unsigned int cpu)
 {
        struct cpufreq_policy policy;
        if (!acpi_thermal_cpufreq_is_init || cpufreq_get_policy(&policy, cpu))
-               return -ENODEV;
-       return 0;
+               return 0;
+       return 1;
 }
 
 static int acpi_thermal_cpufreq_increase(unsigned int cpu)