diff --git a/sys/kern/kern_switch.c b/sys/kern/kern_switch.c index d41974e9d549..a2fb0d8d2f58 100644 --- a/sys/kern/kern_switch.c +++ b/sys/kern/kern_switch.c @@ -473,8 +473,10 @@ critical_exit(void) int maybe_preempt(struct thread *td) { +#ifdef PREEMPTION struct thread *ctd; int cpri, pri; +#endif mtx_assert(&sched_lock, MA_OWNED); #ifdef PREEMPTION