]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] sched: tasks cannot run on cpus onlined after boot
authorNathan Lynch <ntl@pobox.com>
Thu, 11 Jan 2007 07:15:28 +0000 (23:15 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Fri, 12 Jan 2007 02:18:20 +0000 (18:18 -0800)
commit9f80e1e065c6bd7317d5b4a69c642a935de34945
tree51af4f3295f5104217e90d75af6df881b851b3be
parent7a19575c1a9bdcee4d1cb65fdf0864b9eb73c3a1
[PATCH] sched: tasks cannot run on cpus onlined after boot

Commit 6c79a9dfdd0e49a3a1e8c685250419033f7250cd ("sched: force /sbin/init
off isolated cpus") sets init's cpus_allowed to a subset of cpu_online_map
at boot time, which means that tasks won't be scheduled on cpus that are
added to the system later.

Make init's cpus_allowed a subset of cpu_possible_map instead.  This should
still preserve the behavior that Nick's change intended.

Thanks to Giuliano Pochini for reporting this and testing the fix:

http://ozlabs.org/pipermail/linuxppc-dev/2006-December/029397.html

Signed-off-by: Nathan Lynch <ntl@pobox.com>
Acked-by: Ingo Molnar <mingo@elte.hu>
Cc: Nick Piggin <nickpiggin@yahoo.com.au>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/sched.c