linux-stable-rt/arch/parisc/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
asm-offsets.c [PATCH] changing CONFIG_LOCALVERSION rebuilds too much, for no good reason 2005-11-09 07:55:57 -08:00
binfmt_elf32.c
cache.c [PATCH] mm: parisc pte atomicity 2005-10-29 21:40:42 -07:00
drivers.c
entry.S [PARISC] Remove the spurious do_softirq calls from entry.S 2005-10-21 22:54:38 -04:00
firmware.c [PARISC] Document history of PDC_NARROW as it is now obsolete 2005-10-21 22:51:40 -04:00
hardware.c
head.S
hpmc.S
init_task.c
inventory.c
ioctl32.c [PATCH] TIOC* compat ioctl handling 2005-10-30 17:37:17 -08:00
irq.c
module.c
pa7300lc.c
pacache.S [PARISC] Explicitly specify sr4 when flushing kernel space 2005-10-21 22:56:14 -04:00
parisc_ksyms.c
pci-dma.c [PATCH] mm: init_mm without ptlock 2005-10-29 21:40:40 -07:00
pci.c [PARISC] More informative error message in pcibios_link_hba_resources 2005-10-21 22:50:33 -04:00
pdc_chassis.c
pdc_cons.c [PARISC] Update pdc console from parisc tree 2005-10-21 22:50:06 -04:00
perf.c
perf_asm.S
perf_images.h
process.c [PATCH] sched: disable preempt in idle tasks 2005-11-09 07:56:33 -08:00
processor.c
ptrace.c [PATCH] consolidate sys_ptrace() 2005-11-07 07:53:42 -08:00
real2.S [PARISC] Properly specify section alignment for real2.S 2005-10-21 22:56:53 -04:00
semaphore.c
setup.c
signal.c [PARISC] Properly specify index field to I/D cache flush ops 2005-10-21 22:55:51 -04:00
signal32.c
signal32.h
smp.c [PATCH] sched: disable preempt in idle tasks 2005-11-09 07:56:33 -08:00
sys32.h
sys_parisc.c
sys_parisc32.c
syscall.S
syscall_table.S
time.c [PATCH] jiffies_64 cleanup 2005-10-30 17:37:25 -08:00
topology.c
traps.c
unaligned.c
unwind.c
vmlinux.lds.S