sched: convert nohz struct to cpumask_var_t, fix
Rusty Russell [Mon, 24 Nov 2008 23:27:51 +0000 (09:27 +1030)]
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;
 }