Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ed387b78 authored by Hiroshi Shimamoto's avatar Hiroshi Shimamoto Committed by Ingo Molnar
Browse files

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: default avatarHiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
Reviewed-by: default avatarVincent 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: default avatarIngo Molnar <mingo@elte.hu>
parent 30fd049a
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -215,8 +215,6 @@ calc_delta_mine(unsigned long delta_exec, unsigned long weight,


const struct sched_class fair_sched_class;
const struct sched_class fair_sched_class;


static unsigned long __read_mostly max_load_balance_interval = HZ/10;

/**************************************************************
/**************************************************************
 * CFS operations on generic schedulable entities:
 * CFS operations on generic schedulable entities:
 */
 */
@@ -3086,6 +3084,8 @@ static bool yield_to_task_fair(struct rq *rq, struct task_struct *p, bool preemp
 * Fair scheduling class load-balancing methods:
 * Fair scheduling class load-balancing methods:
 */
 */


static unsigned long __read_mostly max_load_balance_interval = HZ/10;

/*
/*
 * pull_task - move a task from a remote runqueue to the local runqueue.
 * pull_task - move a task from a remote runqueue to the local runqueue.
 * Both runqueues must be locked.
 * Both runqueues must be locked.