Skip to contentSkip to conversation

TRIVIAL IV: 2.5.6-pre3. APM idle fix.

PATCH New Rusty Russell 1 participant 1 message Mar 7, 2002

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 TRIVIAL IV: 2.5.6-pre3. APM idle fix.

Linus, please apply.

Stephen Rothwell <[email protected]>: [PATCH] APM idleing fix:

This bug slipped back in with the need_resched() macro substitution.

arch/i386/kernel/apm.c +1 -1
diff -urN -I \$.*\$ --exclude TAGS -X /home/rusty/devel/kernel/kernel-patches/current-dontdiff --minimal linux-2.5.6-pre3/arch/i386/kernel/apm.c trivial-2.5.6-pre3/arch/i386/kernel/apm.c
@@ -812,7 +812,7 @@
 
 	t1 = IDLE_LEAKY_MAX;
 
-	while (need_resched()) {
+	while (!need_resched()) {
 		if (use_apm_idle) {
 			unsigned int t;
 

--
Anyone who quotes me in their sig is an idiot. -- Rusty Russell.