diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2008-11-25 09:57:51 +1030 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-11-26 07:58:27 +0100 |
commit | bf4d83f66476086c6b50dc52aac00d71ad70494e (patch) | |
tree | f3b56de74b39bc5db405fdfd706a386482a03ed6 /kernel/sched.c | |
parent | 96f874e26428ab5d2db681c100210c254775e154 (diff) | |
download | linux-bf4d83f66476086c6b50dc52aac00d71ad70494e.tar.gz linux-bf4d83f66476086c6b50dc52aac00d71ad70494e.tar.bz2 linux-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/sched.c')
-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) /* 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; } |