diff options
author | Rafał Bilski <rafalbilski@interia.pl> | 2006-07-13 19:26:10 +0200 |
---|---|---|
committer | Dave Jones <davej@redhat.com> | 2006-07-31 18:37:06 -0400 |
commit | 9fb31c3a1d9f42e10e541ee0e2be8d1f27115141 (patch) | |
tree | 075a4783f916c5754a8099f1049109133cae4fd0 /arch/i386 | |
parent | eb23c751d837848c87fda6b1347d194f6b333681 (diff) | |
download | op-kernel-dev-9fb31c3a1d9f42e10e541ee0e2be8d1f27115141.zip op-kernel-dev-9fb31c3a1d9f42e10e541ee0e2be8d1f27115141.tar.gz |
[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 fdf8a64..ccd1f2c 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) { |