diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2008-11-24 18:27:51 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-11-26 01:58:27 -0500 |
commit | bf4d83f66476086c6b50dc52aac00d71ad70494e (patch) | |
tree | f3b56de74b39bc5db405fdfd706a386482a03ed6 | |
parent | 96f874e26428ab5d2db681c100210c254775e154 (diff) |
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>
-rw-r--r-- | kernel/sched.c | 2 |
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) | |||
8349 | 8349 | ||
8350 | /* Allocate the nohz_cpu_mask if CONFIG_CPUMASK_OFFSTACK */ | 8350 | /* Allocate the nohz_cpu_mask if CONFIG_CPUMASK_OFFSTACK */ |
8351 | alloc_bootmem_cpumask_var(&nohz_cpu_mask); | 8351 | alloc_bootmem_cpumask_var(&nohz_cpu_mask); |
8352 | #ifdef CONFIG_SMP | ||
8352 | #ifdef CONFIG_NO_HZ | 8353 | #ifdef CONFIG_NO_HZ |
8353 | alloc_bootmem_cpumask_var(&nohz.cpu_mask); | 8354 | alloc_bootmem_cpumask_var(&nohz.cpu_mask); |
8354 | #endif | 8355 | #endif |
8355 | alloc_bootmem_cpumask_var(&cpu_isolated_map); | 8356 | alloc_bootmem_cpumask_var(&cpu_isolated_map); |
8357 | #endif /* SMP */ | ||
8356 | 8358 | ||
8357 | scheduler_running = 1; | 8359 | scheduler_running = 1; |
8358 | } | 8360 | } |