|
@@ -1651,8 +1651,6 @@ static void check_preempt_wakeup(struct rq *rq, struct task_struct *p, int wake_
|
|
int sync = wake_flags & WF_SYNC;
|
|
int sync = wake_flags & WF_SYNC;
|
|
int scale = cfs_rq->nr_running >= sched_nr_latency;
|
|
int scale = cfs_rq->nr_running >= sched_nr_latency;
|
|
|
|
|
|
- update_curr(cfs_rq);
|
|
|
|
-
|
|
|
|
if (unlikely(rt_prio(p->prio))) {
|
|
if (unlikely(rt_prio(p->prio))) {
|
|
resched_task(curr);
|
|
resched_task(curr);
|
|
return;
|
|
return;
|
|
@@ -1710,6 +1708,8 @@ static void check_preempt_wakeup(struct rq *rq, struct task_struct *p, int wake_
|
|
|
|
|
|
BUG_ON(!pse);
|
|
BUG_ON(!pse);
|
|
|
|
|
|
|
|
+ update_curr(cfs_rq);
|
|
|
|
+
|
|
if (wakeup_preempt_entity(se, pse) == 1) {
|
|
if (wakeup_preempt_entity(se, pse) == 1) {
|
|
resched_task(curr);
|
|
resched_task(curr);
|
|
/*
|
|
/*
|