kernel-ark/arch/mips/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
..
asm-offsets.c
binfmt_elfn32.c
binfmt_elfo32.c
branch.c
cpu-bugs64.c
cpu-probe.c Add support for SB1A CPU. 2005-10-29 19:32:46 +01:00
dma-no-isa.c
entry.S
gdb-low.S Get 64-bit right in the kgdb stub. 2005-10-29 19:32:43 +01:00
gdb-stub.c
genex.S
head.S
i8259.c
init_task.c
ioctl32.c [PATCH] remove ioctl32_handler_t 2005-11-09 07:56:00 -08:00
irix5sys.S
irixelf.c [PATCH] Don't uselessly export task_struct to userspace in core dumps 2005-10-30 17:37:18 -08:00
irixinv.c
irixioctl.c
irixsig.c IRIX: Use schedule_timeout_interruptible. 2005-11-07 18:05:39 +00:00
irq_cpu.c
irq-msc01.c
irq-mv6434x.c
irq-rm7000.c
irq-rm9000.c
irq.c
linux32.c
Makefile
mips_ksyms.c
module.c
proc.c Add support for SB1A CPU. 2005-10-29 19:32:46 +01:00
process.c [PATCH] sched: disable preempt in idle tasks 2005-11-09 07:56:33 -08:00
ptrace32.c
ptrace.c [PATCH] consolidate sys_ptrace() 2005-11-07 07:53:42 -08:00
r4k_fpu.S
r4k_switch.S
r2300_fpu.S
r2300_switch.S
r6000_fpu.S
reset.c
rtlx.c Turn rtlx upside down. 2005-11-07 18:05:33 +00:00
scall32-o32.S Sys_lookup_dcookie arguments occupy 4 argument slots. 2005-10-29 19:32:43 +01:00
scall64-64.S
scall64-n32.S
scall64-o32.S
semaphore.c
setup.c
signal32.c Fix return type of setup_frame variants 2005-11-07 18:05:39 +00:00
signal_n32.c
signal-common.h
signal.c Fix return type of setup_frame variants 2005-11-07 18:05:39 +00:00
smp_mt.c
smp.c [PATCH] sched: disable preempt in idle tasks 2005-11-09 07:56:33 -08:00
syscall.c
sysirix.c
time.c [PATCH] jiffies_64 cleanup 2005-10-30 17:37:25 -08:00
traps.c
unaligned.c
vmlinux.lds.S
vpe.c VPE loader janitoring 2005-11-07 18:05:36 +00:00