From fb1e3ccd7effb0c6b129995a499b2514a95675fe Mon Sep 17 00:00:00 2001 From: Kip Macy Date: Fri, 20 Apr 2007 05:45:46 +0000 Subject: [PATCH] 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(-) diff --git a/sys/kern/sched_ule.c b/sys/kern/sched_ule.c index 377fc273cb7c..4f4cf4170dce 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);