tmp_suning_uos_patched/arch
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
..
alpha [PATCH] jiffies_64 cleanup 2005-10-30 17:37:25 -08:00
arm [PATCH] sched: disable preempt in idle tasks 2005-11-09 07:56:33 -08:00
arm26 [PATCH] sched: disable preempt in idle tasks 2005-11-09 07:56:33 -08:00
cris [PATCH] sched: disable preempt in idle tasks 2005-11-09 07:56:33 -08:00
frv [PATCH] sched: disable preempt in idle tasks 2005-11-09 07:56:33 -08:00
h8300 [PATCH] sched: disable preempt in idle tasks 2005-11-09 07:56:33 -08:00
i386 [PATCH] sched: disable preempt in idle tasks 2005-11-09 07:56:33 -08:00
ia64 [PATCH] sched: disable preempt in idle tasks 2005-11-09 07:56:33 -08:00
m32r [PATCH] sched: disable preempt in idle tasks 2005-11-09 07:56:33 -08:00
m68k [PATCH] sched: disable preempt in idle tasks 2005-11-09 07:56:33 -08:00
m68knommu [PATCH] m68knommu: move some platform irq support out of irq.h 2005-11-07 08:00:47 -08:00
mips [PATCH] sched: disable preempt in idle tasks 2005-11-09 07:56:33 -08:00
parisc [PATCH] sched: disable preempt in idle tasks 2005-11-09 07:56:33 -08:00
powerpc [PATCH] sched: disable preempt in idle tasks 2005-11-09 07:56:33 -08:00
ppc [PATCH] sched: disable preempt in idle tasks 2005-11-09 07:56:33 -08:00
ppc64 [PATCH] sched: disable preempt in idle tasks 2005-11-09 07:56:33 -08:00
s390 [PATCH] sched: disable preempt in idle tasks 2005-11-09 07:56:33 -08:00
sh [PATCH] sched: disable preempt in idle tasks 2005-11-09 07:56:33 -08:00
sh64 [PATCH] sched: disable preempt in idle tasks 2005-11-09 07:56:33 -08:00
sparc [PATCH] sched: disable preempt in idle tasks 2005-11-09 07:56:33 -08:00
sparc64 [PATCH] sched: disable preempt in idle tasks 2005-11-09 07:56:33 -08:00
um [PATCH] kfree cleanup: arch 2005-11-07 07:54:06 -08:00
v850 [PATCH] sched: disable preempt in idle tasks 2005-11-09 07:56:33 -08:00
x86_64 [PATCH] sched: disable preempt in idle tasks 2005-11-09 07:56:33 -08:00
xtensa [PATCH] sched: disable preempt in idle tasks 2005-11-09 07:56:33 -08:00