diff options
author | Mark Johnston <markj@FreeBSD.org> | 2020-02-05 19:08:21 +0000 |
---|---|---|
committer | Mark Johnston <markj@FreeBSD.org> | 2020-02-05 19:08:21 +0000 |
commit | c3d326fd44d9cf4649aa35a62a2766155c8b383d (patch) | |
tree | 53ade31ac5d711db805de5a19f1c82f90d2fd9da /sys/amd64 | |
parent | 28e68bc000e72bd2dda9ff94634ad998d33d4502 (diff) | |
download | src-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/amd64')
-rw-r--r-- | sys/amd64/include/param.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/amd64/include/param.h b/sys/amd64/include/param.h index 86f7e08d9725..ac3df693e4d4 100644 --- a/sys/amd64/include/param.h +++ b/sys/amd64/include/param.h @@ -65,7 +65,7 @@ #define MACHINE_ARCH32 "i386" #endif -#if defined(SMP) || defined(KLD_MODULE) +#ifdef SMP #ifndef MAXCPU #define MAXCPU 256 #endif |