aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched.c
diff options
context:
space:
mode:
authorShi, Alex <alex.shi@intel.com>2011-07-28 02:56:12 -0400
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2011-09-29 00:38:29 -0400
commitfc0763f53e3ff6a6bfa66934662a3446b9ca6f16 (patch)
tree2671d3f6275c9707a620032658ecb05025e4e9fa /kernel/sched.c
parentd7bd2d68aa2ee2738a10c8ad9346b805e4ab2e1c (diff)
nohz: Remove nohz_cpu_mask
RCU no longer uses this global variable, nor does anyone else. This commit therefore removes this variable. This reduces memory footprint and also removes some atomic instructions and memory barriers from the dyntick-idle path. Signed-off-by: Alex Shi <alex.shi@intel.com> Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'kernel/sched.c')
-rw-r--r--kernel/sched.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index e24cebe0e6cb..3e5525630459 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -5980,15 +5980,6 @@ void __cpuinit init_idle(struct task_struct *idle, int cpu)
5980} 5980}
5981 5981
5982/* 5982/*
5983 * In a system that switches off the HZ timer nohz_cpu_mask
5984 * indicates which cpus entered this state. This is used
5985 * in the rcu update to wait only for active cpus. For system
5986 * which do not switch off the HZ timer nohz_cpu_mask should
5987 * always be CPU_BITS_NONE.
5988 */
5989cpumask_var_t nohz_cpu_mask;
5990
5991/*
5992 * Increase the granularity value when there are more CPUs, 5983 * Increase the granularity value when there are more CPUs,
5993 * because with more CPUs the 'effective latency' as visible 5984 * because with more CPUs the 'effective latency' as visible
5994 * to users decreases. But the relationship is not linear, 5985 * to users decreases. But the relationship is not linear,
@@ -8200,8 +8191,6 @@ void __init sched_init(void)
8200 */ 8191 */
8201 current->sched_class = &fair_sched_class; 8192 current->sched_class = &fair_sched_class;
8202 8193
8203 /* Allocate the nohz_cpu_mask if CONFIG_CPUMASK_OFFSTACK */
8204 zalloc_cpumask_var(&nohz_cpu_mask, GFP_NOWAIT);
8205#ifdef CONFIG_SMP 8194#ifdef CONFIG_SMP
8206 zalloc_cpumask_var(&sched_domains_tmpmask, GFP_NOWAIT); 8195 zalloc_cpumask_var(&sched_domains_tmpmask, GFP_NOWAIT);
8207#ifdef CONFIG_NO_HZ 8196#ifdef CONFIG_NO_HZ