aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched/fair.c
diff options
context:
space:
mode:
authorHiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>2012-01-30 21:40:32 -0500
committerIngo Molnar <mingo@elte.hu>2012-01-31 07:40:59 -0500
commited387b781ea6e14b78f449aa2ee4f270b60b01ac (patch)
tree16ae2791173a7796feadf853ba1bee9b93fc0fff /kernel/sched/fair.c
parent30fd049afcfed50e022704036e8629d6bdfe84e6 (diff)
sched: Move SMP-only variable into the SMP section
This also fixes the following compilation warning on !SMP: CC kernel/sched/fair.o kernel/sched/fair.c:218:36: warning: 'max_load_balance_interval' defined but not used [-Wunused-variable] Signed-off-by: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com> Reviewed-by: Vincent Guittot <vincent.guittot@linaro.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/r/4F2754A0.9090306@ct.jp.nec.com Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sched/fair.c')
-rw-r--r--kernel/sched/fair.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
index 8e77a6bd597..4ab60a24ea4 100644
--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
@@ -215,8 +215,6 @@ calc_delta_mine(unsigned long delta_exec, unsigned long weight,
215 215
216const struct sched_class fair_sched_class; 216const struct sched_class fair_sched_class;
217 217
218static unsigned long __read_mostly max_load_balance_interval = HZ/10;
219
220/************************************************************** 218/**************************************************************
221 * CFS operations on generic schedulable entities: 219 * CFS operations on generic schedulable entities:
222 */ 220 */
@@ -3086,6 +3084,8 @@ static bool yield_to_task_fair(struct rq *rq, struct task_struct *p, bool preemp
3086 * Fair scheduling class load-balancing methods: 3084 * Fair scheduling class load-balancing methods:
3087 */ 3085 */
3088 3086
3087static unsigned long __read_mostly max_load_balance_interval = HZ/10;
3088
3089/* 3089/*
3090 * pull_task - move a task from a remote runqueue to the local runqueue. 3090 * pull_task - move a task from a remote runqueue to the local runqueue.
3091 * Both runqueues must be locked. 3091 * Both runqueues must be locked.