sched/core: Reset RQCF_ACT_SKIP before unpinning rq->lock
[linux-2.6-block.git] / kernel / sched / fair.c
index 6559d197e08a5be3809a2176c8d2fdb52b38389d..490441255c5693f8afe231da82c1821087bc7a12 100644 (file)
@@ -6213,7 +6213,7 @@ preempt:
 }
 
 static struct task_struct *
-pick_next_task_fair(struct rq *rq, struct task_struct *prev, struct pin_cookie cookie)
+pick_next_task_fair(struct rq *rq, struct task_struct *prev, struct rq_flags *rf)
 {
        struct cfs_rq *cfs_rq = &rq->cfs;
        struct sched_entity *se;
@@ -6326,9 +6326,9 @@ idle:
         * further scheduler activity on it and we're being very careful to
         * re-start the picking loop.
         */
-       lockdep_unpin_lock(&rq->lock, cookie);
+       rq_unpin_lock(rq, rf);
        new_tasks = idle_balance(rq);
-       lockdep_repin_lock(&rq->lock, cookie);
+       rq_repin_lock(rq, rf);
        /*
         * Because idle_balance() releases (and re-acquires) rq->lock, it is
         * possible for any higher priority task to appear. In that case we