linux-stable-rt/arch/s390/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 [PATCH] s390: merge common parts of head.S and head64.S 2005-11-07 07:53:34 -08:00
asm-offsets.c
binfmt_elf32.c
bitmap.S
compat_exec_domain.c
compat_ioctl.c
compat_linux.c
compat_linux.h
compat_ptrace.h
compat_signal.c
compat_wrapper.S
cpcmd.c
crash.c
debug.c [PATCH] s390: "extern inline" -> "static inline" 2005-11-09 07:55:52 -08:00
ebcdic.c
entry.S [PATCH] s390: signal delivery 2005-11-07 07:53:32 -08:00
entry64.S [PATCH] s390: signal delivery 2005-11-07 07:53:32 -08:00
head.S [PATCH] s390: merge common parts of head.S and head64.S 2005-11-07 07:53:34 -08:00
head31.S [PATCH] s390: merge common parts of head.S and head64.S 2005-11-07 07:53:34 -08:00
head64.S [PATCH] s390: merge common parts of head.S and head64.S 2005-11-07 07:53:34 -08:00
init_task.c
irq.c
machine_kexec.c
module.c
process.c [PATCH] sched: disable preempt in idle tasks 2005-11-09 07:56:33 -08:00
profile.c
ptrace.c
reipl.S
reipl64.S
reipl_diag.c
relocate_kernel.S
relocate_kernel64.S
s390_ext.c
s390_ksyms.c
semaphore.c
setup.c
signal.c
smp.c [PATCH] sched: disable preempt in idle tasks 2005-11-09 07:56:33 -08:00
sys_s390.c
syscalls.S
time.c [PATCH] s390: stop_hz_timer vs. xtime updates 2005-11-07 07:53:32 -08:00
traps.c [PATCH] s390: remove pagex support 2005-11-07 07:53:33 -08:00
vmlinux.lds.S
vtime.c