sched: convert nohz struct to cpumask_var_t, fix
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 24 Nov 2008 23:27:51 +0000 (09:57 +1030)
committerIngo Molnar <mingo@elte.hu>
Wed, 26 Nov 2008 06:58:27 +0000 (07:58 +0100)
Impact: build fix

Fix the !CONFIG_SMP case.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Acked-by: Mike Travis <travis@sgi.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched.c

index eba6a15..1aa840a 100644 (file)
@@ -8349,10 +8349,12 @@ void __init sched_init(void)
 
        /* Allocate the nohz_cpu_mask if CONFIG_CPUMASK_OFFSTACK */
        alloc_bootmem_cpumask_var(&nohz_cpu_mask);
+#ifdef CONFIG_SMP
 #ifdef CONFIG_NO_HZ
        alloc_bootmem_cpumask_var(&nohz.cpu_mask);
 #endif
        alloc_bootmem_cpumask_var(&cpu_isolated_map);
+#endif /* SMP */
 
        scheduler_running = 1;
 }