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:
Attilio Rao 2012-10-30 12:25:52 +00:00
parent ed228e403f
commit a049aa05c9

View File

@ -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);