cpumask: remove cpumask allocation from idle_balance, fix
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 19 Mar 2009 04:52:20 +0000 (15:22 +1030)
committerIngo Molnar <mingo@elte.hu>
Thu, 19 Mar 2009 12:49:44 +0000 (13:49 +0100)
Impact: fix boot crash

Fix typo in the size calculation.

Reported-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
LKML-Reference: <alpine.DEB.2.00.0903181729360.31583@gandalf.stny.rr.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched.c

index 48862d4..11dd527 100644 (file)
@@ -8297,7 +8297,7 @@ void __init sched_init(void)
        alloc_size *= 2;
 #endif
 #ifdef CONFIG_CPUMASK_OFFSTACK
-       alloc_size *= num_possible_cpus() * cpumask_size();
+       alloc_size += num_possible_cpus() * cpumask_size();
 #endif
        /*
         * As sched_init() is called before page_alloc is setup,