sys/_{cpu,domain}set.h: don't require sys/param.h

Add machine/param.h for MAXCPU and MAXMEMDOM in the _KERNEL case of
sys/_cpuset.h and sys/_domainset.h, making them more self contained.

This eliminates the need to include sys/param.h before sys/cpuset.h and
sys/domainset.h.

Reviewed by:	kib
Differential Revision:	https://reviews.freebsd.org/D44466
This commit is contained in:
Brooks Davis 2024-04-15 17:53:39 +01:00
parent 6bb132ba1e
commit b83d3eb5b7
2 changed files with 4 additions and 0 deletions

View file

@ -35,6 +35,8 @@
#include <sys/_bitset.h>
#ifdef _KERNEL
#include <machine/param.h>
#define CPU_SETSIZE MAXCPU
#endif

View file

@ -32,6 +32,8 @@
#include <sys/_bitset.h>
#ifdef _KERNEL
#include <machine/param.h>
#define DOMAINSET_SETSIZE MAXMEMDOM
#endif