Unbreak build for the the !PREEMPTION case: don't define variables
that aren't used in that case.
This commit is contained in:
parent
557b7fa148
commit
8b44a2e2c9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user