]> git.hungrycats.org Git - linux/commitdiff
[PATCH] 2.5.6-pre3. APM idle fix.
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 7 Mar 2002 08:44:50 +0000 (00:44 -0800)
committerLinus Torvalds <torvalds@penguin.transmeta.com>
Thu, 7 Mar 2002 08:44:50 +0000 (00:44 -0800)
Stephen Rothwell <sfr@canb.auug.org.au>: [PATCH] APM idleing fix:

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

arch/i386/kernel/apm.c

index 2e52b14f75d377c8a3843d8d72709f1d8654d069..3a397576b41ae232235f6c679792cc840dc27a6f 100644 (file)
@@ -812,7 +812,7 @@ recalc:
 
        t1 = IDLE_LEAKY_MAX;
 
-       while (need_resched()) {
+       while (!need_resched()) {
                if (use_apm_idle) {
                        unsigned int t;