Commit 0874aad7 authored by Roman Zippel's avatar Roman Zippel Committed by Linus Torvalds

[PATCH] m68k: idle update [10/20]

Fix idle functions.
parent 6c4c810c
...@@ -53,19 +53,15 @@ asmlinkage void ret_from_fork(void); ...@@ -53,19 +53,15 @@ asmlinkage void ret_from_fork(void);
/* /*
* The idle loop on an m68k.. * 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) #if defined(MACH_ATARI_ONLY) && !defined(CONFIG_HADES)
/* block out HSYNC on the atari (falcon) */ /* block out HSYNC on the atari (falcon) */
__asm__("stop #0x2200" : : : "cc"); __asm__("stop #0x2200" : : : "cc");
#else #else
__asm__("stop #0x2000" : : : "cc"); __asm__("stop #0x2000" : : : "cc");
#endif #endif
schedule();
check_pgt_cache();
}
} }
void (*idle)(void) = default_idle; void (*idle)(void) = default_idle;
...@@ -79,9 +75,11 @@ void (*idle)(void) = default_idle; ...@@ -79,9 +75,11 @@ void (*idle)(void) = default_idle;
void cpu_idle(void) void cpu_idle(void)
{ {
/* endless idle loop with no priority at all */ /* endless idle loop with no priority at all */
init_idle(); while (1) {
current->nice = 20; while (!need_resched())
idle(); idle();
schedule();
}
} }
void machine_restart(char * __unused) void machine_restart(char * __unused)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment