diff options
author | Rafał Bilski <rafalbilski@interia.pl> | 2006-07-13 19:26:10 +0200 |
---|---|---|
committer | Dave Jones <davej@redhat.com> | 2006-08-01 00:37:06 +0200 |
commit | 9fb31c3a1d9f42e10e541ee0e2be8d1f27115141 (patch) | |
tree | 075a4783f916c5754a8099f1049109133cae4fd0 /arch/i386 | |
parent | [CPUFREQ] Longhaul - Readd accidentally dropped line (diff) | |
download | linux-9fb31c3a1d9f42e10e541ee0e2be8d1f27115141.tar.xz linux-9fb31c3a1d9f42e10e541ee0e2be8d1f27115141.zip |
[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 <rafalbilski@interia.pl>
Signed-off-by: Dave Jones <davej@redhat.com>
Diffstat (limited to 'arch/i386')
-rw-r--r-- | arch/i386/kernel/cpu/cpufreq/longhaul.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |