linux/arch/powerpc
Nick Piggin 5bfb5d690f [PATCH] sched: disable preempt in idle tasks
Run idle threads with preempt disabled.

Also corrected a bugs in arm26's cpu_idle (make it actually call schedule()).
How did it ever work before?

Might fix the CPU hotplugging hang which Nigel Cunningham noted.

We think the bug hits if the idle thread is preempted after checking
need_resched() and before going to sleep, then the CPU offlined.

After calling stop_machine_run, the CPU eventually returns from preemption and
into the idle thread and goes to sleep.  The CPU will continue executing
previous idle and have no chance to call play_dead.

By disabling preemption until we are ready to explicitly schedule, this bug is
fixed and the idle threads generally become more robust.

From: alexs <ashepard@u.washington.edu>

  PPC build fix

From: Yoichi Yuasa <yuasa@hh.iij4u.or.jp>

  MIPS build fix

Signed-off-by: Nick Piggin <npiggin@suse.de>
Signed-off-by: Yoichi Yuasa <yuasa@hh.iij4u.or.jp>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-11-09 07:56:33 -08:00
..
configs [PATCH] ppc64: Update g5_defconfig for ARCH=powerpc 2005-11-08 11:17:50 +11:00
kernel [PATCH] ppc32: fix perf_irq extern on e500 2005-11-09 07:55:52 -08:00
lib Merge ../linux-2.6 2005-11-07 14:42:09 +11:00
mm [PATCH] ppc64: Fix the lazy icache/dcache code for non-RAM pages 2005-11-08 13:07:50 +11:00
oprofile [PATCH] ppc64: fix oprofile sample bit handling 2005-11-08 11:19:55 +11:00
platforms [PATCH] sched: disable preempt in idle tasks 2005-11-09 07:56:33 -08:00
sysdev [PATCH] powerpc: Kill ppcdebug 2005-11-07 12:37:45 +11:00
xmon powerpc: Remove T command from xmon help text since it no longer exists 2005-10-29 22:11:06 +10:00
Kconfig [PATCH] Memory Add Fixes for ppc64 2005-11-08 11:20:00 +11:00
Kconfig.debug [PATCH] Move Kprobes and Oprofile to "Instrumentation Support" menu 2005-11-07 07:53:35 -08:00
Makefile powerpc: Set entry point and text address in linker script 2005-11-03 16:03:06 +11:00