|
@@ -1096,7 +1096,7 @@ static void check_preempt_curr_rt(struct rq *rq, struct task_struct *p, int flag
|
|
* to move current somewhere else, making room for our non-migratable
|
|
* to move current somewhere else, making room for our non-migratable
|
|
* task.
|
|
* task.
|
|
*/
|
|
*/
|
|
- if (p->prio == rq->curr->prio && !need_resched())
|
|
|
|
|
|
+ if (p->prio == rq->curr->prio && !test_tsk_need_resched(rq->curr))
|
|
check_preempt_equal_prio(rq, p);
|
|
check_preempt_equal_prio(rq, p);
|
|
#endif
|
|
#endif
|
|
}
|
|
}
|