Commit 039d8783 authored by Andrew Morton's avatar Andrew Morton Committed by Len Brown

[PATCH] acpi cpu_has_cpufreq() fix

Call that function rather than evaluating its runtime address...
parent b7fc051e
......@@ -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) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment