linux-stable-rt/arch/arm/kernel
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
..
Makefile
apm.c
armksyms.c [ARM] 3134/1: add missing EXPORT_SYMBOL for the ARM version of sha_transform 2005-11-08 22:43:05 +00:00
arthur.c
asm-offsets.c
bios32.c
calls.S
compat.c
debug.S
dma-isa.c
dma.c
ecard.c [ARM] Fix second missing declaration of cache_is_vivt() 2005-11-06 19:47:04 +00:00
entry-armv.S [ARM SMP] Add core ARM support for local timers 2005-11-08 19:08:05 +00:00
entry-common.S
entry-header.S
fiq.c
head.S
init_task.c
io.c
irq.c [ARM SMP] Add core ARM support for local timers 2005-11-08 19:08:05 +00:00
isa.c
iwmmxt.S
module.c
process.c [PATCH] sched: disable preempt in idle tasks 2005-11-09 07:56:33 -08:00
ptrace.c [PATCH] consolidate sys_ptrace() 2005-11-07 07:53:42 -08:00
ptrace.h
semaphore.c
setup.c [ARM] Fix /proc/cpuinfo format for ARM SMP 2005-11-06 21:41:08 +00:00
signal.c
signal.h
smp.c [PATCH] sched: disable preempt in idle tasks 2005-11-09 07:56:33 -08:00
sys_arm.c
time.c
traps.c
vmlinux.lds.S