[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>
This commit is contained in:
Rafa Bilski 2006-07-13 19:26:10 +02:00 committed by Dave Jones
parent eb23c751d8
commit 9fb31c3a1d

View File

@ -550,7 +550,7 @@ static int __init longhaul_cpu_init(struct cpufreq_policy *policy)
if (pr == NULL) goto err_acpi; if (pr == NULL) goto err_acpi;
cx = &pr->power.states[ACPI_STATE_C3]; 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 */ /* Now check what we have on this motherboard */
switch (c->x86_model) { switch (c->x86_model) {