summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2008-11-25 09:57:51 +1030
committerIngo Molnar <mingo@elte.hu>2008-11-26 07:58:27 +0100
commitbf4d83f66476086c6b50dc52aac00d71ad70494e (patch)
treef3b56de74b39bc5db405fdfd706a386482a03ed6 /kernel
parent96f874e26428ab5d2db681c100210c254775e154 (diff)
downloadlwn-bf4d83f66476086c6b50dc52aac00d71ad70494e.tar.gz
lwn-bf4d83f66476086c6b50dc52aac00d71ad70494e.zip
sched: convert nohz struct to cpumask_var_t, fix
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>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/sched.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index eba6a156d334..1aa840a9f585 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -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;
}