mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-25 11:37:56 +00:00
tdq_lock_pair() already does spinlock_enter() so migration is not
possible in sched_balance_pair(). Remove redundant sched_pin(). Reviewed by: marius, jeff
This commit is contained in:
parent
ed228e403f
commit
a049aa05c9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=242356
@ -910,10 +910,8 @@ sched_balance_pair(struct tdq *high, struct tdq *low)
|
||||
* reschedule with the new workload.
|
||||
*/
|
||||
cpu = TDQ_ID(low);
|
||||
sched_pin();
|
||||
if (cpu != PCPU_GET(cpuid))
|
||||
ipi_cpu(cpu, IPI_PREEMPT);
|
||||
sched_unpin();
|
||||
}
|
||||
tdq_unlock_pair(high, low);
|
||||
return (moved);
|
||||
|
Loading…
Reference in New Issue
Block a user