]> git.baikalelectronics.ru Git - kernel.git/commit
sched: Fix boot crash by zalloc()ing most of the cpu masks
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 2 Nov 2009 10:07:20 +0000 (20:37 +1030)
committerIngo Molnar <mingo@elte.hu>
Mon, 2 Nov 2009 14:48:54 +0000 (15:48 +0100)
commit0a97b155c1e15c6b8ca6648dae3458eb6e7ead8c
treea2a73c84a384243a63c1b8e8462c39381d5ef98e
parent6cc54db52a8c1d6a048233bcc8850b70439bf4ea
sched: Fix boot crash by zalloc()ing most of the cpu masks

I got a boot crash when forcing cpumasks offstack on 32 bit,
because find_new_ilb() returned 3 on my UP system (nohz.cpu_mask
wasn't zeroed).

AFAICT the others need to be zeroed too: only
nohz.ilb_grp_nohz_mask is initialized before use.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Cc: Peter Zijlstra <peterz@infradead.org>
LKML-Reference: <200911022037.21282.rusty@rustcorp.com.au>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched.c