mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
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: Michael Wang <[email protected]> Acked-by: Mike Galbraith <[email protected]> Signed-off-by: Peter Zijlstra <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
This commit is contained in:
parent
d00535db42
commit
38b8dd6f87
1 changed files with 0 additions and 7 deletions
|
|
@ -4348,13 +4348,6 @@ again:
|
|||
*/
|
||||
if (preempt && rq != p_rq)
|
||||
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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue