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

Commit 38b8dd6f authored by Michael Wang's avatar Michael Wang Committed by Ingo Molnar
Browse files

sched: Remove useless code in yield_to()



It's impossible to enter the else branch if we have set
skip_clock_update in task_yield_fair(), as yield_to_task_fair()
 will directly return true after invoke task_yield_fair().

Signed-off-by: default avatarMichael Wang <wangyun@linux.vnet.ibm.com>
Acked-by: default avatarMike Galbraith <efault@gmx.de>
Signed-off-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/4FF2925A.9060005@linux.vnet.ibm.com


Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
parent d00535db
Loading
Loading
Loading
Loading
+0 −7
Original line number Original line Diff line number Diff line
@@ -4348,13 +4348,6 @@ again:
		 */
		 */
		if (preempt && rq != p_rq)
		if (preempt && rq != p_rq)
			resched_task(p_rq->curr);
			resched_task(p_rq->curr);
	} else {
		/*
		 * We might have set it in task_yield_fair(), but are
		 * not going to schedule(), so don't want to skip
		 * the next update.
		 */
		rq->skip_clock_update = 0;
	}
	}


out:
out: