Skip to content

Commit

Permalink
[CPUFREQ] Longhaul - Fix power state test to do something more useful
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Rafa³ Bilski authored and Dave Jones committed Jul 31, 2006
1 parent eb23c75 commit 9fb31c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/i386/kernel/cpu/cpufreq/longhaul.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 9fb31c3

Please sign in to comment.