summaryrefslogtreecommitdiffstats
path: root/sys/i386/include
diff options
context:
space:
mode:
authorscottl <scottl@FreeBSD.org>2004-09-01 10:12:08 +0000
committerscottl <scottl@FreeBSD.org>2004-09-01 10:12:08 +0000
commitc0ab9d7bd6da8525f9efbc1860f8f47819021337 (patch)
tree983d65d51cbdc60d41e05ac9a73bd0dac7baae09 /sys/i386/include
parent5a545bc8bcb7c1a43befce67d1c42c9a1c257f35 (diff)
downloadFreeBSD-src-c0ab9d7bd6da8525f9efbc1860f8f47819021337.zip
FreeBSD-src-c0ab9d7bd6da8525f9efbc1860f8f47819021337.tar.gz
Protect the PREEMPTION logic with #ifdef _KERNEL to fix the build.
Diffstat (limited to 'sys/i386/include')
-rw-r--r--sys/i386/include/param.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/i386/include/param.h b/sys/i386/include/param.h
index 7f84e2a..1c4b41a 100644
--- a/sys/i386/include/param.h
+++ b/sys/i386/include/param.h
@@ -98,10 +98,12 @@
#define PDRMASK (NBPDR-1)
/* PREEMPTION exposes scheduler bugs that need to be fixed. */
+#ifdef _KERNEL
#include "opt_sched.h"
#ifdef SCHED_4BSD
#define PREEMPTION
#endif
+#endif
#define IOPAGES 2 /* pages of i/o permission bitmap */
OpenPOWER on IntegriCloud