summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authorkmacy <kmacy@FreeBSD.org>2007-04-20 05:45:46 +0000
committerkmacy <kmacy@FreeBSD.org>2007-04-20 05:45:46 +0000
commitd7e93cb21b8bf82161a075a608fb7bac5b15db25 (patch)
tree9b9f1328573b1bda2fd92093a8db3f9449918df7 /sys/kern
parent60e4196f372556371005ae28f8567ec556b76333 (diff)
downloadFreeBSD-src-d7e93cb21b8bf82161a075a608fb7bac5b15db25.zip
FreeBSD-src-d7e93cb21b8bf82161a075a608fb7bac5b15db25.tar.gz
Schedule the ithread on the same cpu as the interrupt
Tested by: kmacy Submitted by: jeffr
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/sched_ule.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/kern/sched_ule.c b/sys/kern/sched_ule.c
index 377fc27..4f4cf41 100644
--- a/sys/kern/sched_ule.c
+++ b/sys/kern/sched_ule.c
@@ -1859,8 +1859,7 @@ sched_add(struct thread *td, int flags)
CTR2(KTR_ULE, "ithd %d < %d",
td->td_priority, PRI_MAX_ITHD);
ts->ts_cpu = cpuid;
- }
- if (pick_pri)
+ } else if (pick_pri)
ts->ts_cpu = tdq_pickpri(tdq, ts, flags);
else
ts->ts_cpu = tdq_pickidle(tdq, ts);
OpenPOWER on IntegriCloud