kernel-ark/arch/parisc
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 [PARISC] defconfig updates 2005-10-21 23:11:03 -04:00
hpux 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 [PARISC] Specify level to fix binutils level promotion bug 2005-10-21 22:56:35 -04:00
math-emu Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mm [PATCH] memory hotplug locking: node_size_lock 2005-10-29 21:40:44 -07:00
oprofile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
defconfig [PARISC] defconfig updates 2005-10-21 23:11:03 -04:00
defpalo.conf Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
install.sh Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
Kconfig [PARISC] Update Kconfig for itimer selection 2005-10-21 22:52:46 -04:00
Kconfig.debug Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
Makefile [PARISC] Update minimum compiler version and CROSS_COMPILE for parisc64 2005-10-21 22:52:00 -04:00
nm Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00