sched: Do not consider SCHED_IDLE tasks to be cache hot
[pandora-kernel.git] / kernel / sched.c
index 728081a..771b518 100644 (file)
@@ -2025,6 +2025,9 @@ task_hot(struct task_struct *p, u64 now, struct sched_domain *sd)
        if (p->sched_class != &fair_sched_class)
                return 0;
 
+       if (unlikely(p->policy == SCHED_IDLE))
+               return 0;
+
        /*
         * Buddy candidates are cache hot:
         */