Skip to content

Commit

Permalink
[ACPI] fix passive cooling regression
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Len Brown <[email protected]>
  • Loading branch information
watologo1 authored and lenb committed Dec 23, 2005
1 parent b05948d commit 75b245b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/acpi/processor_thermal.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 75b245b

Please sign in to comment.