X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=kernel%2Fsched.c;h=727bdef7616121e4c143472517a64b21396376ce;hb=e958b3600484533ff801920290468adc8135f89d;hp=f36f549e5744d68677f022a2818e73f09ab317d4;hpb=68f4f1ec08e3d95730a2693b99df8260aa0d06ae;p=deliverable%2Flinux.git diff --git a/kernel/sched.c b/kernel/sched.c index f36f549e5744..727bdef76161 100644 --- a/kernel/sched.c +++ b/kernel/sched.c @@ -1637,12 +1637,6 @@ inline int task_curr(const struct task_struct *p) return cpu_curr(task_cpu(p)) == p; } -/* Used instead of source_load when we know the type == 0 */ -static unsigned long weighted_cpuload(const int cpu) -{ - return cpu_rq(cpu)->load.weight; -} - static inline void __set_task_cpu(struct task_struct *p, unsigned int cpu) { set_task_rq(p, cpu); @@ -1671,6 +1665,12 @@ static inline void check_class_changed(struct rq *rq, struct task_struct *p, #ifdef CONFIG_SMP +/* Used instead of source_load when we know the type == 0 */ +static unsigned long weighted_cpuload(const int cpu) +{ + return cpu_rq(cpu)->load.weight; +} + /* * Is this task likely cache-hot: */