From: Rafa³ Bilski Date: Thu, 13 Jul 2006 17:26:10 +0000 (+0200) Subject: [CPUFREQ] Longhaul - Fix power state test to do something more useful X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=9fb31c3a1d9f42e10e541ee0e2be8d1f27115141;p=linux-beck.git [CPUFREQ] Longhaul - Fix power state test to do something more useful This is changing "always true" test to something usefull. Signed-off-by: Rafa³ Bilski Signed-off-by: Dave Jones --- diff --git a/arch/i386/kernel/cpu/cpufreq/longhaul.c b/arch/i386/kernel/cpu/cpufreq/longhaul.c index fdf8a6424f25..ccd1f2c39e18 100644 --- a/arch/i386/kernel/cpu/cpufreq/longhaul.c +++ b/arch/i386/kernel/cpu/cpufreq/longhaul.c @@ -550,7 +550,7 @@ static int __init longhaul_cpu_init(struct cpufreq_policy *policy) if (pr == NULL) goto err_acpi; cx = &pr->power.states[ACPI_STATE_C3]; - if (cx == NULL || cx->latency > 1000) goto err_acpi; + if (cx->address == 0 || cx->latency > 1000) goto err_acpi; /* Now check what we have on this motherboard */ switch (c->x86_model) {