]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] m68k: idle update [10/20]
authorRoman Zippel <zippel@linux-m68k.org>
Tue, 7 May 2002 03:10:40 +0000 (20:10 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Tue, 7 May 2002 03:10:40 +0000 (20:10 -0700)
Fix idle functions.

arch/m68k/kernel/process.c

index ec9a7c0dcbbcc52c4294ad3886fee6943fc568d9..b6beffd774207bfb3d4d8862f7f3dd8bedb7acd5 100644 (file)
@@ -53,19 +53,15 @@ asmlinkage void ret_from_fork(void);
 /*
  * The idle loop on an m68k..
  */
-static void default_idle(void)
+void default_idle(void)
 {
-       while(1) {
-               if (!need_resched())
+       if (!need_resched())
 #if defined(MACH_ATARI_ONLY) && !defined(CONFIG_HADES)
-                       /* block out HSYNC on the atari (falcon) */
-                       __asm__("stop #0x2200" : : : "cc");
+               /* block out HSYNC on the atari (falcon) */
+               __asm__("stop #0x2200" : : : "cc");
 #else
-                       __asm__("stop #0x2000" : : : "cc");
+               __asm__("stop #0x2000" : : : "cc");
 #endif
-               schedule();
-               check_pgt_cache();
-       }
 }
 
 void (*idle)(void) = default_idle;
@@ -79,9 +75,11 @@ void (*idle)(void) = default_idle;
 void cpu_idle(void)
 {
        /* endless idle loop with no priority at all */
-       init_idle();
-       current->nice = 20;
-       idle();
+       while (1) {
+               while (!need_resched())
+                       idle();
+               schedule();
+       }
 }
 
 void machine_restart(char * __unused)