aboutsummaryrefslogtreecommitdiff
path: root/sys/arm/include
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2020-02-05 19:08:21 +0000
committerMark Johnston <markj@FreeBSD.org>2020-02-05 19:08:21 +0000
commitc3d326fd44d9cf4649aa35a62a2766155c8b383d (patch)
tree53ade31ac5d711db805de5a19f1c82f90d2fd9da /sys/arm/include
parent28e68bc000e72bd2dda9ff94634ad998d33d4502 (diff)
downloadsrc-c3d326fd44d9cf4649aa35a62a2766155c8b383d.tar.gz
src-c3d326fd44d9cf4649aa35a62a2766155c8b383d.zip
Define MAXCPU consistently between the kernel and KLDs.
This reverts r177661. The change is no longer very useful since out-of-tree KLDs will be built to target SMP kernels anyway. Moveover it breaks the KBI in !SMP builds since cpuset_t's layout depends on the value of MAXCPU, and several kernel interfaces, notably smp_rendezvous_cpus(), take a cpuset_t as a parameter. PR: 243711 Reviewed by: jhb, kib Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D23512
Notes
Notes: svn path=/head/; revision=357585
Diffstat (limited to 'sys/arm/include')
-rw-r--r--sys/arm/include/param.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arm/include/param.h b/sys/arm/include/param.h
index 39dcc5e341bf..ff5c271dfb2e 100644
--- a/sys/arm/include/param.h
+++ b/sys/arm/include/param.h
@@ -75,13 +75,13 @@
#define MACHINE_ARCH "arm" _V_SUFFIX _EB_SUFFIX
#endif
-#if defined(SMP) || defined(KLD_MODULE)
+#ifdef SMP
#ifndef MAXCPU
#define MAXCPU 4
#endif
#else
#define MAXCPU 1
-#endif /* SMP || KLD_MODULE */
+#endif
#ifndef MAXMEMDOM
#define MAXMEMDOM 1