alistair23-linux/arch/m68k
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
..
amiga [PATCH] timer initialization cleanup: DEFINE_TIMER 2005-09-09 14:03:48 -07:00
apollo Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
atari [PATCH] m68k: fix-up schedule_timeout() usage 2005-11-07 07:53:56 -08:00
bvme6000 [PATCH] move m68k rtc drivers over to initcalls 2005-09-07 16:57:23 -07:00
configs [PATCH] M68k: Mark Sun-3 NCR5380 SCSI broken 2005-06-12 20:43:22 -07:00
fpsp040 kbuild: m68k,parisc,ppc,ppc64,s390,xtensa use generic asm-offsets.h support 2005-09-09 20:57:26 +02:00
hp300 Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ifpsp060 kbuild: m68k,parisc,ppc,ppc64,s390,xtensa use generic asm-offsets.h support 2005-09-09 20:57:26 +02:00
kernel [PATCH] sched: disable preempt in idle tasks 2005-11-09 07:56:33 -08:00
lib [PATCH] m68k: cleanup inline mem functions 2005-09-05 00:06:19 -07:00
mac [PATCH] timer initialization cleanup: DEFINE_TIMER 2005-09-09 14:03:48 -07:00
math-emu kbuild: m68k,parisc,ppc,ppc64,s390,xtensa use generic asm-offsets.h support 2005-09-09 20:57:26 +02:00
mm [PATCH] mm: init_mm without ptlock 2005-10-29 21:40:40 -07:00
mvme16x [PATCH] move m68k rtc drivers over to initcalls 2005-09-07 16:57:23 -07:00
mvme147 Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
q40 Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sun3 Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sun3x [PATCH] mm: init_mm without ptlock 2005-10-29 21:40:40 -07:00
tools/amiga Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
defconfig [PATCH] M68k: Update defconfigs 2005-06-12 20:43:21 -07:00
Kconfig [PATCH] mm: m68k kill stram swap 2005-10-29 21:40:38 -07:00
Kconfig.debug Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
Makefile kbuild: m68k,parisc,ppc,ppc64,s390,xtensa use generic asm-offsets.h support 2005-09-09 20:57:26 +02:00