]> err.no Git - linux-2.6/commitdiff
[CPUFREQ] Longhaul - Fix power state test to do something more useful
authorRafa³ Bilski <rafalbilski@interia.pl>
Thu, 13 Jul 2006 17:26:10 +0000 (19:26 +0200)
committerDave Jones <davej@redhat.com>
Mon, 31 Jul 2006 22:37:06 +0000 (18:37 -0400)
This is changing "always true" test to something usefull.

Signed-off-by: Rafa³ Bilski <rafalbilski@interia.pl>
Signed-off-by: Dave Jones <davej@redhat.com>
arch/i386/kernel/cpu/cpufreq/longhaul.c

index fdf8a6424f252f8369f5806719a8d1d3f8e848a9..ccd1f2c39e18b2c9a74929629962c8a576578d14 100644 (file)
@@ -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) {