summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Roberson <jeff@FreeBSD.org>2007-01-20 17:03:33 +0000
committerJeff Roberson <jeff@FreeBSD.org>2007-01-20 17:03:33 +0000
commitc95d2db298766cd678ee66c87f1367ea1d990007 (patch)
treeff01dd9ffcdb06d4dad2a4c7da7158499409a800
parentd071f5048ca7122b4e7d7b859d9af01c5bebf892 (diff)
Notes
-rw-r--r--sys/kern/sched_ule.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/kern/sched_ule.c b/sys/kern/sched_ule.c
index cbec5c59c4d1..af9ddc61e7c0 100644
--- a/sys/kern/sched_ule.c
+++ b/sys/kern/sched_ule.c
@@ -724,12 +724,6 @@ tdq_notify(struct td_sched *ts)
*/
if (prio > ipi_thresh && td->td_priority < PRI_MIN_IDLE)
return;
- /*
- * The idlethread finds new work via sched_runnable(), don't IPI
- * here.
- */
- if (td == pcpu->pc_idlethread)
- return;
if (ipi_ast)
ipi_selected(1 << cpu, IPI_AST);
else if (ipi_preempt)
@@ -1925,7 +1919,7 @@ sched_bind(struct thread *td, int cpu)
mtx_assert(&sched_lock, MA_OWNED);
ts = td->td_sched;
if (ts->ts_flags & TSF_BOUND)
- return;
+ sched_unbind(td);
ts->ts_flags |= TSF_BOUND;
#ifdef SMP
sched_pin();