linux/arch/powerpc/platforms
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
..
4xx ppc: Various minor compile fixes 2005-10-11 22:08:12 +10:00
8xx powerpc: Merge enough to start building in arch/powerpc. 2005-09-26 16:04:21 +10:00
85xx ppc: Various minor compile fixes 2005-10-11 22:08:12 +10:00
apus powerpc: Merge enough to start building in arch/powerpc. 2005-09-26 16:04:21 +10:00
cell [PATCH] powerpc: move arch/ppc64/kernel/bpa* to arch/powerpc/platforms/cell 2005-11-01 21:03:07 +11:00
chrp powerpc: Merge smp.c and smp.h 2005-11-05 10:33:55 +11:00
embedded6xx powerpc: Merge i8259.c into arch/powerpc/sysdev 2005-10-26 16:47:42 +10:00
iseries [PATCH] sched: disable preempt in idle tasks 2005-11-09 07:56:33 -08:00
maple powerpc: Merge maple support code to arch/powerpc/platforms/maple 2005-10-29 22:07:56 +10:00
powermac powerpc: Fix typo in pmac_cpufreq_resume 2005-11-08 12:13:38 +11:00
prep powerpc: Merge enough to start building in arch/powerpc. 2005-09-26 16:04:21 +10:00
pseries [PATCH] sched: disable preempt in idle tasks 2005-11-09 07:56:33 -08:00
Makefile [PATCH] powerpc: create a new arch/powerpc/platforms/cell/smp.c 2005-11-01 21:02:53 +11:00