dect
/
linux-2.6
Archived
13
0
Fork 0
This repository has been archived on 2022-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
linux-2.6/arch/m32r
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
..
boot [PATCH] m32r: Support M3A-2170(Mappi-III) platform 2005-06-21 19:07:30 -07:00
kernel [PATCH] sched: disable preempt in idle tasks 2005-11-09 07:56:33 -08:00
lib [PATCH] fix missing includes 2005-10-30 17:37:32 -08:00
m32700ut [PATCH] m32r: Update defconfig files 2005-06-21 19:07:31 -07:00
mappi [PATCH] m32r: Update defconfig files 2005-06-21 19:07:31 -07:00
mappi2 [PATCH] m32r: Update defconfig files 2005-06-21 19:07:31 -07:00
mappi3 [PATCH] m32r: Support M3A-2170(Mappi-III) platform 2005-06-21 19:07:30 -07:00
mm [PATCH] memory hotplug locking: node_size_lock 2005-10-29 21:40:44 -07:00
oaks32r [PATCH] m32r: Update defconfig files 2005-06-21 19:07:31 -07:00
oprofile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
opsput [PATCH] m32r: Update defconfig files 2005-06-21 19:07:31 -07:00
Kconfig [LIB]: Consolidate _atomic_dec_and_lock() 2005-09-14 21:47:01 -07:00
Kconfig.debug [PATCH] Kconfig fix (DEBUG_PAGEALLOC on m32r) 2005-08-23 18:43:41 -07:00
Makefile [PATCH] m32r: set CHECKFLAGS properly 2005-09-26 18:29:50 -07:00
defconfig [PATCH] m32r: Update defconfig files 2005-06-21 19:07:31 -07:00