summaryrefslogtreecommitdiffstats
path: root/sys/arm
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/arm
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/arm')
-rw-r--r--sys/arm/include/param.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/arm/include/param.h b/sys/arm/include/param.h
index 1694bc4..96a70388f 100644
--- a/sys/arm/include/param.h
+++ b/sys/arm/include/param.h
@@ -61,7 +61,9 @@
#define MID_MACHINE MID_ARM6
#if defined(SMP) || defined(KLD_MODULE)
+#ifndef MAXCPU
#define MAXCPU 2
+#endif
#else
#define MAXCPU 1
#endif /* SMP || KLD_MODULE */
OpenPOWER on IntegriCloud