summaryrefslogtreecommitdiffstats
path: root/sys/i386/include/param.h
diff options
context:
space:
mode:
authorattilio <attilio@FreeBSD.org>2011-07-19 00:37:24 +0000
committerattilio <attilio@FreeBSD.org>2011-07-19 00:37:24 +0000
commita73e834ebb2ee705e131501fdea63d05aadae527 (patch)
tree05f7da2af94ce8adb51cef94323beaa68ef121a7 /sys/i386/include/param.h
parentf3caef077b39887e5b737c600ec46379c99b7dc0 (diff)
downloadFreeBSD-src-a73e834ebb2ee705e131501fdea63d05aadae527.zip
FreeBSD-src-a73e834ebb2ee705e131501fdea63d05aadae527.tar.gz
Add the possibility to specify from kernel configs MAXCPU value.
This patch is going to help in cases like mips flavours where you want a more granular support on MAXCPU. No MFC is previewed for this patch. Tested by: pluknet Approved by: re (kib)
Diffstat (limited to 'sys/i386/include/param.h')
-rw-r--r--sys/i386/include/param.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/i386/include/param.h b/sys/i386/include/param.h
index d95fcf3..6a0495c4 100644
--- a/sys/i386/include/param.h
+++ b/sys/i386/include/param.h
@@ -68,7 +68,9 @@
#define MID_MACHINE MID_I386
#if defined(SMP) || defined(KLD_MODULE)
+#ifndef MAXCPU
#define MAXCPU 32
+#endif
#else
#define MAXCPU 1
#endif /* SMP || KLD_MODULE */
OpenPOWER on IntegriCloud