summaryrefslogtreecommitdiffstats
path: root/sys/sun4v/include
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/sun4v/include
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/sun4v/include')
-rw-r--r--sys/sun4v/include/param.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/sun4v/include/param.h b/sys/sun4v/include/param.h
index 6e1d389..0ac9c9b 100644
--- a/sys/sun4v/include/param.h
+++ b/sys/sun4v/include/param.h
@@ -59,11 +59,11 @@
#endif
#define MID_MACHINE MID_SPARC64
-#ifdef SMP
+#if defined(SMP) || defined(KLD_MODULE)
#define MAXCPU 32
#else
#define MAXCPU 1
-#endif /* SMP */
+#endif /* SMP || KLD_MODULE */
#define INT_SHIFT 2
#define PTR_SHIFT 3
OpenPOWER on IntegriCloud