]> git.baikalelectronics.ru Git - kernel.git/commit
sched: Fix isolcpus boot option
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 2 Dec 2009 03:39:16 +0000 (14:09 +1030)
committerIngo Molnar <mingo@elte.hu>
Wed, 2 Dec 2009 09:27:16 +0000 (10:27 +0100)
commitf076ad9eb414585d38acd6ec67a5afe1de60fcfd
treeb3d886be91ddcf99e3b83c120aedebb840ff75df
parent3f582d73b6ee7ff7bf23ded011674b7b76dd4be1
sched: Fix isolcpus boot option

Anton Blanchard wrote:

> We allocate and zero cpu_isolated_map after the isolcpus
> __setup option has run. This means cpu_isolated_map always
> ends up empty and if CPUMASK_OFFSTACK is enabled we write to a
> cpumask that hasn't been allocated.

I introduced this regression in 0a97b155c1e15c6b (sched: Fix
boot crash by zalloc()ing most of the cpu masks).

Use the bootmem allocator if they set isolcpus=, otherwise
allocate and zero like normal.

Reported-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Cc: peterz@infradead.org
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: <stable@kernel.org>
LKML-Reference: <200912021409.17013.rusty@rustcorp.com.au>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Tested-by: Anton Blanchard <anton@samba.org>
kernel/sched.c