projects
/
platform
/
upstream
/
kernel-adaptation-pc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9cef46
)
sched: Change get_rq_runnable_load() to static and inline
author
Alex Shi
<alex.shi@intel.com>
Thu, 20 Jun 2013 02:18:57 +0000
(10:18 +0800)
committer
Ingo Molnar
<mingo@kernel.org>
Thu, 27 Jun 2013 08:07:44 +0000
(10:07 +0200)
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>
kernel/sched/proc.c
patch
|
blob
|
history
diff --git
a/kernel/sched/proc.c
b/kernel/sched/proc.c
index
ce5cd48
..
16f5a30
100644
(file)
--- 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,
}
#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;
}