[parisc-linux] small patch for cpu_idle?

Randolph Chung randolph@tausq.org
Sun, 21 Oct 2001 10:52:27 -0700


It appears to me that our cpu_idle is not quite right... what do you
guys think about this:

Index: process.c
===================================================================
RCS file: /home/cvs/parisc/linux/arch/parisc/kernel/process.c,v
retrieving revision 1.38
diff -u -r1.38 process.c
--- process.c   2001/10/09 19:43:35     1.38
+++ process.c   2001/10/21 17:46:53
@@ -67,8 +67,8 @@
        current->counter = -100;
 
        while (1) {
-               while (!current->need_resched) {
-               }
+               while (!current->need_resched) 
+                       continue;
                schedule();
                check_pgt_cache();
        }

otherwise when cpu_idle gets called we might get stuck in an inf loop
(which happens, for example, when fsck requires manual intervention on
startup).

randolph
-- 
   @..@                                         http://www.TauSq.org/
  (----)
 ( >__< )
 ^^ ~~ ^^