Skip to contentSkip to conversation

Longhaul - Typo fix

PATCH Applied Rafał Bilski 2 participants 2 messages Jul 13, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Longhaul - Typo fix

Please add this too.
This is changing "always true" test to something usefull.

---

arch/i386/kernel/cpu/cpufreq/longhaul.c +1 -1
diff -uprN -X linux-2.6.17-git20-vanilla/Documentation/dontdiff linux-2.6.17-git20-vanilla/arch/i386/kernel/cpu/cpufreq/longhaul.c linux-2.6.17-git20/arch/i386/kernel/cpu/cpufreq/longhaul.c
@@ -550,7 +550,7 @@ static int __init longhaul_cpu_init(stru
 	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) {

--------------------------------------------------------------------
12 000 SMS-ow gratis! Promocja na http://link.interia.pl/f1971

Applied
#1 lore raw
Quoted 4 lines · Rafał Bilski

Please add this too.
This is changing "always true" test to something usefull.

Applied, thanks.

Dave

Signature · 1 line
http://www.codemonkey.org.uk