aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/sched.c')
-rw-r--r--kernel/sched.c12
1 files changed, 6 insertions, 6 deletions
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)
1637 return cpu_curr(task_cpu(p)) == p; 1637 return cpu_curr(task_cpu(p)) == p;
1638} 1638}
1639 1639
1640/* Used instead of source_load when we know the type == 0 */
1641static unsigned long weighted_cpuload(const int cpu)
1642{
1643 return cpu_rq(cpu)->load.weight;
1644}
1645
1646static inline void __set_task_cpu(struct task_struct *p, unsigned int cpu) 1640static inline void __set_task_cpu(struct task_struct *p, unsigned int cpu)
1647{ 1641{
1648 set_task_rq(p, cpu); 1642 set_task_rq(p, cpu);
@@ -1671,6 +1665,12 @@ static inline void check_class_changed(struct rq *rq, struct task_struct *p,
1671 1665
1672#ifdef CONFIG_SMP 1666#ifdef CONFIG_SMP
1673 1667
1668/* Used instead of source_load when we know the type == 0 */
1669static unsigned long weighted_cpuload(const int cpu)
1670{
1671 return cpu_rq(cpu)->load.weight;
1672}
1673
1674/* 1674/*
1675 * Is this task likely cache-hot: 1675 * Is this task likely cache-hot:
1676 */ 1676 */