From: Thomas Renninger Date: Wed, 21 Dec 2005 06:29:00 +0000 (-0500) Subject: [ACPI] fix passive cooling regression X-Git-Tag: v2.6.15-rc7~13^2 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=75b245b3259133360845bc6de3aecb8a6bd6ab59;p=~emulex%2Finfiniband.git [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 Signed-off-by: Len Brown --- diff --git a/drivers/acpi/processor_thermal.c b/drivers/acpi/processor_thermal.c index f3758401532..dc9817cfb88 100644 --- a/drivers/acpi/processor_thermal.c +++ b/drivers/acpi/processor_thermal.c @@ -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)