From d7e93cb21b8bf82161a075a608fb7bac5b15db25 Mon Sep 17 00:00:00 2001 From: kmacy Date: Fri, 20 Apr 2007 05:45:46 +0000 Subject: Schedule the ithread on the same cpu as the interrupt Tested by: kmacy Submitted by: jeffr --- sys/kern/sched_ule.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sys/kern') 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); -- cgit v1.1