summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2004-08-15 20:32:40 +0000
committerrwatson <rwatson@FreeBSD.org>2004-08-15 20:32:40 +0000
commit6f9a1cc98b053f8dab5f4607e60e777d2331ac15 (patch)
tree1dd13a5ef8ce483d30257e29339df752708165cc
parent88969e81e2ef4007dc9ba176336c705f0a1bea8d (diff)
downloadFreeBSD-src-6f9a1cc98b053f8dab5f4607e60e777d2331ac15.zip
FreeBSD-src-6f9a1cc98b053f8dab5f4607e60e777d2331ac15.tar.gz
Preemptive anti-footshooting: cause a #error if MP_WATCHDOG is compiled
with SCHED_ULE.
-rw-r--r--sys/amd64/amd64/mp_watchdog.c5
-rw-r--r--sys/i386/i386/mp_watchdog.c5
2 files changed, 10 insertions, 0 deletions
diff --git a/sys/amd64/amd64/mp_watchdog.c b/sys/amd64/amd64/mp_watchdog.c
index cf41577..b3b5d9e 100644
--- a/sys/amd64/amd64/mp_watchdog.c
+++ b/sys/amd64/amd64/mp_watchdog.c
@@ -27,6 +27,11 @@
*/
#include "opt_mp_watchdog.h"
+#include "opt_sched.h"
+
+#ifdef SCHED_ULE
+#error MP_WATCHDOG cannot currently be used with SCHED_ULE
+#endif
#include <sys/param.h>
#include <sys/kdb.h>
diff --git a/sys/i386/i386/mp_watchdog.c b/sys/i386/i386/mp_watchdog.c
index cf41577..b3b5d9e 100644
--- a/sys/i386/i386/mp_watchdog.c
+++ b/sys/i386/i386/mp_watchdog.c
@@ -27,6 +27,11 @@
*/
#include "opt_mp_watchdog.h"
+#include "opt_sched.h"
+
+#ifdef SCHED_ULE
+#error MP_WATCHDOG cannot currently be used with SCHED_ULE
+#endif
#include <sys/param.h>
#include <sys/kdb.h>
OpenPOWER on IntegriCloud