Commit ff56b2f0 authored by Peter Zijlstra's avatar Peter Zijlstra Committed by Ingo Molnar

sched: activate task_hot() only on fair-scheduled tasks

activate task_hot() only for fair-scheduled tasks (i.e. disable it
for RT tasks).
Signed-off-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent da84d961
...@@ -2122,11 +2122,16 @@ static void pull_task(struct rq *src_rq, struct task_struct *p, ...@@ -2122,11 +2122,16 @@ static void pull_task(struct rq *src_rq, struct task_struct *p,
* Is this task likely cache-hot: * Is this task likely cache-hot:
*/ */
static inline int static inline int
task_hot(struct task_struct *p, unsigned long long now, struct sched_domain *sd) task_hot(struct task_struct *p, u64 now, struct sched_domain *sd)
{ {
s64 delta = now - p->se.exec_start; s64 delta;
return delta < (long long)sysctl_sched_migration_cost; if (p->sched_class != &fair_sched_class)
return 0;
delta = now - p->se.exec_start;
return delta < (s64)sysctl_sched_migration_cost;
} }
/* /*
......
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