sched: wakeup-buddy tasks are cache-hot
[sfrench/cifs-2.6.git] / kernel / sched.c
index adbd475cfd2556e5c28591cb103de399111c64a6..3f7c5eb254e205c24bc95bf5ac264e28d918d9b8 100644 (file)
@@ -1396,6 +1396,12 @@ task_hot(struct task_struct *p, u64 now, struct sched_domain *sd)
 {
        s64 delta;
 
+       /*
+        * Buddy candidates are cache hot:
+        */
+       if (&p->se == cfs_rq_of(&p->se)->next)
+               return 1;
+
        if (p->sched_class != &fair_sched_class)
                return 0;