Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2004-02-11 03:02:20 -0500
committerLen Brown <lenb@dhcppc3.>2004-02-11 03:02:20 -0500
commit039d87834b3c8623841da374652fc114089568f3 (patch)
treefd2a55fc6ff6f13a4e6b00f4772f99379c042404
parentb7fc051edc4ce1ae81c721e5688703c0edf72e42 (diff)
[PATCH] acpi cpu_has_cpufreq() fix
Call that function rather than evaluating its runtime address...
-rw-r--r--drivers/acpi/processor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/acpi/processor.c b/drivers/acpi/processor.c
index b32e99f61ba2..5088b9ee53e2 100644
--- a/drivers/acpi/processor.c
+++ b/drivers/acpi/processor.c
@@ -1607,7 +1607,7 @@ static int cpu_has_cpufreq(unsigned int cpu)
static int acpi_thermal_cpufreq_increase(unsigned int cpu)
{
- if (!cpu_has_cpufreq)
+ if (!cpu_has_cpufreq(cpu))
return -ENODEV;
if (cpufreq_thermal_reduction_pctg[cpu] < 60) {
@@ -1622,7 +1622,7 @@ static int acpi_thermal_cpufreq_increase(unsigned int cpu)
static int acpi_thermal_cpufreq_decrease(unsigned int cpu)
{
- if (!cpu_has_cpufreq)
+ if (!cpu_has_cpufreq(cpu))
return -ENODEV;
if (cpufreq_thermal_reduction_pctg[cpu] >= 20) {