]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Define MAXCPU consistently between the kernel and KLDs.
authormarkj <markj@FreeBSD.org>
Wed, 5 Feb 2020 19:08:21 +0000 (19:08 +0000)
committermarkj <markj@FreeBSD.org>
Wed, 5 Feb 2020 19:08:21 +0000 (19:08 +0000)
commit80f1eda869e67c243fda9dfd0b0411d03aa69373
tree53ade31ac5d711db805de5a19f1c82f90d2fd9da
parent72a88e4244bb47796b2719392b3697e2610b102c
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
sys/amd64/include/param.h
sys/arm/include/param.h
sys/arm64/include/param.h
sys/i386/include/param.h
sys/powerpc/include/param.h
sys/riscv/include/param.h