Merge "sched: Make resched_cpu() unconditional"

This commit is contained in:
Linux Build Service Account 2017-10-05 16:10:06 -07:00 committed by Gerrit - the friendly Code Review server
commit 9e61cad143

View file

@ -621,8 +621,7 @@ void resched_cpu(int cpu)
struct rq *rq = cpu_rq(cpu);
unsigned long flags;
if (!raw_spin_trylock_irqsave(&rq->lock, flags))
return;
raw_spin_lock_irqsave(&rq->lock, flags);
resched_curr(rq);
raw_spin_unlock_irqrestore(&rq->lock, flags);
}