diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2008-11-24 16:05:04 (GMT) |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-11-24 16:51:10 (GMT) |
commit | 6a7b3dc3440f7b5a9b67594af01ed562cdeb41e4 (patch) | |
tree | fdbe54d2c9cd665c6a76ed09e9e4b7c51fb4df20 /include/linux/sched.h | |
parent | 6c99e9ad47d9c082bd096f42fb49e397b05d58a8 (diff) | |
download | linux-fsl-qoriq-6a7b3dc3440f7b5a9b67594af01ed562cdeb41e4.tar.xz |
sched: convert nohz_cpu_mask to cpumask_var_t.
Impact: (future) size reduction for large NR_CPUS.
Dynamically allocating cpumasks (when CONFIG_CPUMASK_OFFSTACK) saves
space for small nr_cpu_ids but big CONFIG_NR_CPUS. cpumask_var_t
is just a struct cpumask for !CONFIG_CPUMASK_OFFSTACK.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index c5be6c6..1e33e2c 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -249,7 +249,7 @@ extern void init_idle_bootup_task(struct task_struct *idle); extern int runqueue_is_locked(void); extern void task_rq_unlock_wait(struct task_struct *p); -extern cpumask_t nohz_cpu_mask; +extern cpumask_var_t nohz_cpu_mask; #if defined(CONFIG_SMP) && defined(CONFIG_NO_HZ) extern int select_nohz_load_balancer(int cpu); #else |