Commit a9dc5d0e authored by Alex Shi's avatar Alex Shi Committed by Ingo Molnar

sched: Change get_rq_runnable_load() to static and inline

Based-on-patch-by: default avatarFengguang Wu <fengguang.wu@intel.com>
Signed-off-by: default avatarAlex Shi <alex.shi@intel.com>
Tested-by: default avatarVincent Guittot <vincent.guittot@linaro.org>
Signed-off-by: default avatarPeter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1371694737-29336-14-git-send-email-alex.shi@intel.comSigned-off-by: default avatarIngo Molnar <mingo@kernel.org>
parent a9cef46a
......@@ -502,12 +502,12 @@ static void __update_cpu_load(struct rq *this_rq, unsigned long this_load,
}
#ifdef CONFIG_SMP
unsigned long get_rq_runnable_load(struct rq *rq)
static inline unsigned long get_rq_runnable_load(struct rq *rq)
{
return rq->cfs.runnable_load_avg;
}
#else
unsigned long get_rq_runnable_load(struct rq *rq)
static inline unsigned long get_rq_runnable_load(struct rq *rq)
{
return rq->load.weight;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment