summaryrefslogtreecommitdiffstats
path: root/sys/kern/sched_ule.c
diff options
context:
space:
mode:
authorattilio <attilio@FreeBSD.org>2012-10-30 12:25:52 +0000
committerattilio <attilio@FreeBSD.org>2012-10-30 12:25:52 +0000
commit97b0f9880bb1fb4a7075d1ab07e052b2e3120191 (patch)
tree7c194f9604a351b8ec6df1a316aeb9e39dbbab0d /sys/kern/sched_ule.c
parent9b18063210d27dc8dd8a4528af6bc00798d20664 (diff)
downloadFreeBSD-src-97b0f9880bb1fb4a7075d1ab07e052b2e3120191.zip
FreeBSD-src-97b0f9880bb1fb4a7075d1ab07e052b2e3120191.tar.gz
tdq_lock_pair() already does spinlock_enter() so migration is not
possible in sched_balance_pair(). Remove redundant sched_pin(). Reviewed by: marius, jeff
Diffstat (limited to 'sys/kern/sched_ule.c')
-rw-r--r--sys/kern/sched_ule.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/kern/sched_ule.c b/sys/kern/sched_ule.c
index e42ec52..b3cf10d 100644
--- a/sys/kern/sched_ule.c
+++ b/sys/kern/sched_ule.c
@@ -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);
OpenPOWER on IntegriCloud