From 9330bbbb61bcdbf2094aacb201d082e69d97f903 Mon Sep 17 00:00:00 2001 From: Jeff Roberson Date: Sat, 6 Jan 2007 02:34:23 +0000 Subject: [PATCH] - Don't IPI unless we're going to interrupt something exiting in the kernel. otherwise we can afford the latency. This makes a significant performance improvement. --- sys/kern/sched_ule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/sched_ule.c b/sys/kern/sched_ule.c index e117782d3bd..ac406807fd9 100644 --- a/sys/kern/sched_ule.c +++ b/sys/kern/sched_ule.c @@ -692,7 +692,7 @@ tdq_notify(struct td_sched *ts, int cpu) } while(!atomic_cmpset_ptr((volatile uintptr_t *)&tdq->tdq_assigned, (uintptr_t)ts->ts_assign, (uintptr_t)ts)); /* Only ipi for realtime/ithd priorities */ - if (ts->ts_thread->td_priority >= PRI_MIN_TIMESHARE) + if (ts->ts_thread->td_priority > PRI_MIN_KERN) return; /* * Without sched_lock we could lose a race where we set NEEDRESCHED