Merge "sched: Make resched_cpu() unconditional"
This commit is contained in:
commit
9e61cad143
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue