aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/sched.c')
-rw-r--r--kernel/sched.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index 728081a7ef1c..771b518e5f1f 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -2025,6 +2025,9 @@ task_hot(struct task_struct *p, u64 now, struct sched_domain *sd)
2025 if (p->sched_class != &fair_sched_class) 2025 if (p->sched_class != &fair_sched_class)
2026 return 0; 2026 return 0;
2027 2027
2028 if (unlikely(p->policy == SCHED_IDLE))
2029 return 0;
2030
2028 /* 2031 /*
2029 * Buddy candidates are cache hot: 2032 * Buddy candidates are cache hot:
2030 */ 2033 */