summaryrefslogtreecommitdiffstats
path: root/sys/i386/include/param.h
diff options
context:
space:
mode:
authorjb <jb@FreeBSD.org>2008-03-27 05:03:26 +0000
committerjb <jb@FreeBSD.org>2008-03-27 05:03:26 +0000
commit34e730ca273d9bd38d9081bc80c78688c6abdd4c (patch)
treefab7e3c1d8d06e5b21f4fddec18bc48b6708d26f /sys/i386/include/param.h
parent2a244be0948ebf54f47b701a69bdc0acbc452299 (diff)
downloadFreeBSD-src-34e730ca273d9bd38d9081bc80c78688c6abdd4c.zip
FreeBSD-src-34e730ca273d9bd38d9081bc80c78688c6abdd4c.tar.gz
When building a kernel module, define MAXCPU the same as SMP so
that modules work with and without SMP.
Diffstat (limited to 'sys/i386/include/param.h')
-rw-r--r--sys/i386/include/param.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/i386/include/param.h b/sys/i386/include/param.h
index 0f67c27..1251009 100644
--- a/sys/i386/include/param.h
+++ b/sys/i386/include/param.h
@@ -65,11 +65,11 @@
#endif
#define MID_MACHINE MID_I386
-#ifdef SMP
+#if defined(SMP) || defined(KLD_MODULE)
#define MAXCPU 16
#else
#define MAXCPU 1
-#endif /* SMP */
+#endif /* SMP || KLD_MODULE */
#define ALIGNBYTES _ALIGNBYTES
#define ALIGN(p) _ALIGN(p)
OpenPOWER on IntegriCloud