]> git.hungrycats.org Git - linux/commit
[PATCH] introduce idle_task_exit
authorNathan Lynch <nathanl@austin.ibm.com>
Sat, 8 Jan 2005 05:48:27 +0000 (21:48 -0800)
committerLinus Torvalds <torvalds@evo.osdl.org>
Sat, 8 Jan 2005 05:48:27 +0000 (21:48 -0800)
commite2c5665198865f95c878c961571199c7d84ea210
tree0bc1bd9669c4666437f46b0c8c67923cb2f0a030
parent0615dec53294aacca93beab1a07451f517ae5737
[PATCH] introduce idle_task_exit

Heiko Carstens figured out that offlining a cpu can leak mm_structs because
the dying cpu's idle task fails to switch to init_mm and mmdrop its
active_mm before the cpu is down.  This patch introduces idle_task_exit,
which allows the idle task to do this as Ingo suggested.

I will follow this up with a patch for ppc64 which calls idle_task_exit
from cpu_die.

Signed-off-by: Nathan Lynch <nathanl@austin.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/linux/sched.h
kernel/sched.c