]> Git Repo - J-linux.git/commitdiff
cpumask: remove cpumask allocation from idle_balance, fix
authorRusty Russell <[email protected]>
Thu, 19 Mar 2009 04:52:20 +0000 (15:22 +1030)
committerIngo Molnar <[email protected]>
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 <[email protected]>
Signed-off-by: Rusty Russell <[email protected]>
LKML-Reference: <alpine.DEB.2.00.0903181729360[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
kernel/sched.c

index 48862d418bed6c2203af4aa8e0fba1e1a698b2bd..11dd52780adb556a5d825174620bac18a095fca3 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,
This page took 0.057051 seconds and 4 git commands to generate.