aboutsummaryrefslogtreecommitdiff
path: root/sys/ia64/include/param.h
diff options
context:
space:
mode:
authorJohn Birrell <jb@FreeBSD.org>2008-03-27 05:03:26 +0000
committerJohn Birrell <jb@FreeBSD.org>2008-03-27 05:03:26 +0000
commite483943791c5e44918441b32580765ceef74a82c (patch)
treefab7e3c1d8d06e5b21f4fddec18bc48b6708d26f /sys/ia64/include/param.h
parent97dbe5e48ee458137257e952004b1cd700d387ba (diff)
downloadsrc-e483943791c5e44918441b32580765ceef74a82c.tar.gz
src-e483943791c5e44918441b32580765ceef74a82c.zip
When building a kernel module, define MAXCPU the same as SMP so
that modules work with and without SMP.
Notes
Notes: svn path=/head/; revision=177661
Diffstat (limited to 'sys/ia64/include/param.h')
-rw-r--r--sys/ia64/include/param.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/ia64/include/param.h b/sys/ia64/include/param.h
index c71c6e5a7bf3..acea69007d2b 100644
--- a/sys/ia64/include/param.h
+++ b/sys/ia64/include/param.h
@@ -78,7 +78,7 @@
#define MACHINE_ARCH "ia64"
#endif
-#ifdef SMP
+#if defined(SMP) || defined(KLD_MODULE)
#define MAXCPU 4
#else
#define MAXCPU 1