diff options
author | scottl <scottl@FreeBSD.org> | 2004-09-02 18:59:15 +0000 |
---|---|---|
committer | scottl <scottl@FreeBSD.org> | 2004-09-02 18:59:15 +0000 |
commit | d9af98161a593a71f96724acd29231e7fff3cfe2 (patch) | |
tree | 43dc4fd34e2a35dcd08857f52e9ae89c2dda740f /sys/kern/kern_switch.c | |
parent | e5632b23412e4668525e6a7487b06e47dab99409 (diff) | |
download | FreeBSD-src-d9af98161a593a71f96724acd29231e7fff3cfe2.zip FreeBSD-src-d9af98161a593a71f96724acd29231e7fff3cfe2.tar.gz |
Turn PREEMPTION into a kernel option. Make sure that it's defined if
FULL_PREEMPTION is defined. Add a runtime warning to ULE if PREEMPTION is
enabled (code inspired by the PREEMPTION warning in kern_switch.c). This
is a possible MT5 candidate.
Diffstat (limited to 'sys/kern/kern_switch.c')
-rw-r--r-- | sys/kern/kern_switch.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/kern/kern_switch.c b/sys/kern/kern_switch.c index e36128f..69cfb5f 100644 --- a/sys/kern/kern_switch.c +++ b/sys/kern/kern_switch.c @@ -88,7 +88,6 @@ reassigned to keep this true. #include <sys/cdefs.h> __FBSDID("$FreeBSD$"); -#include "opt_full_preemption.h" #include "opt_sched.h" #include <sys/param.h> @@ -109,6 +108,11 @@ __FBSDID("$FreeBSD$"); #include <sys/sysctl.h> #endif +#ifdef FULL_PREEMPTION +#ifndef PREEMPTION +#error "The FULL_PREEMPTION option requires the PREEMPTION option" +#endif +#endif CTASSERT((RQB_BPW * RQB_LEN) == RQ_NQS); |