aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Moolenaar <marcel@FreeBSD.org>2004-07-03 00:57:43 +0000
committerMarcel Moolenaar <marcel@FreeBSD.org>2004-07-03 00:57:43 +0000
commit8b44a2e2c95434ebcadc8f0f905e53bdef4eb735 (patch)
tree43601b39270d86c3092ae0b599bd1ec5ccda85ff
parent557b7fa1488f8937156051e061ac3512330bcb7e (diff)
downloadsrc-8b44a2e2c95434ebcadc8f0f905e53bdef4eb735.tar.gz
src-8b44a2e2c95434ebcadc8f0f905e53bdef4eb735.zip
Unbreak build for the the !PREEMPTION case: don't define variables
that aren't used in that case.
Notes
Notes: svn path=/head/; revision=131508
-rw-r--r--sys/kern/kern_switch.c2
1 files changed, 2 insertions, 0 deletions
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