diff options
author | Alex Shi <alex.shi@intel.com> | 2013-06-19 22:18:57 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2013-06-27 04:07:44 -0400 |
commit | a9dc5d0e33c677619e4b97a38c23db1a42857905 (patch) | |
tree | ea79b3c67189f43bd0cf357a5cacc7ff734d7402 /kernel | |
parent | a9cef46a10cc1b84bf2cdf4060766d858c0439d8 (diff) |
sched: Change get_rq_runnable_load() to static and inline
Based-on-patch-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Alex Shi <alex.shi@intel.com>
Tested-by: Vincent Guittot <vincent.guittot@linaro.org>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1371694737-29336-14-git-send-email-alex.shi@intel.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/sched/proc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/sched/proc.c b/kernel/sched/proc.c index ce5cd4892e43..16f5a30f9c88 100644 --- a/kernel/sched/proc.c +++ b/kernel/sched/proc.c | |||
@@ -502,12 +502,12 @@ static void __update_cpu_load(struct rq *this_rq, unsigned long this_load, | |||
502 | } | 502 | } |
503 | 503 | ||
504 | #ifdef CONFIG_SMP | 504 | #ifdef CONFIG_SMP |
505 | unsigned long get_rq_runnable_load(struct rq *rq) | 505 | static inline unsigned long get_rq_runnable_load(struct rq *rq) |
506 | { | 506 | { |
507 | return rq->cfs.runnable_load_avg; | 507 | return rq->cfs.runnable_load_avg; |
508 | } | 508 | } |
509 | #else | 509 | #else |
510 | unsigned long get_rq_runnable_load(struct rq *rq) | 510 | static inline unsigned long get_rq_runnable_load(struct rq *rq) |
511 | { | 511 | { |
512 | return rq->load.weight; | 512 | return rq->load.weight; |
513 | } | 513 | } |