Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 77d9cc44 authored by Ingo Molnar's avatar Ingo Molnar
Browse files

sched: clean up the wakeup preempt check



clean up the wakeup preemption check. No code changed:

   text    data     bss     dec     hex filename
  44227    3326      36   47589    b9e5 sched.o.before
  44227    3326      36   47589    b9e5 sched.o.after

Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 8bc6767a
Loading
Loading
Loading
Loading
+13 −12
Original line number Diff line number Diff line
@@ -852,7 +852,9 @@ static void check_preempt_wakeup(struct rq *rq, struct task_struct *p)
	if (unlikely(p->policy == SCHED_BATCH))
		return;

	if (sched_feat(WAKEUP_PREEMPT)) {
	if (!sched_feat(WAKEUP_PREEMPT))
		return;

	while (!is_same_group(se, pse)) {
		se = parent_entity(se);
		pse = parent_entity(pse);
@@ -866,7 +868,6 @@ static void check_preempt_wakeup(struct rq *rq, struct task_struct *p)
	if (delta > gran)
		resched_task(curr);
}
}

static struct task_struct *pick_next_task_fair(struct rq *rq)
{