diff --git a/sys/kern/sched_ule.c b/sys/kern/sched_ule.c index ac2b0c65d816..889037d37d9a 100644 --- a/sys/kern/sched_ule.c +++ b/sys/kern/sched_ule.c @@ -1628,7 +1628,7 @@ sched_add(struct thread *td) * Only try to preempt if the thread is unpinned or pinned to the * current CPU. */ - if (KSE_CAN_MIGRATE(ke) || ke->ke_cpu == PCPU_GET(cpuid)) + if (KSE_CAN_MIGRATE(ke, class) || ke->ke_cpu == PCPU_GET(cpuid)) #endif if (maybe_preempt(td)) return;