mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 12:54:27 +00:00
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:
parent
6bb132ba1e
commit
b83d3eb5b7
|
@ -35,6 +35,8 @@
|
|||
#include <sys/_bitset.h>
|
||||
|
||||
#ifdef _KERNEL
|
||||
#include <machine/param.h>
|
||||
|
||||
#define CPU_SETSIZE MAXCPU
|
||||
#endif
|
||||
|
||||
|
|
|
@ -32,6 +32,8 @@
|
|||
#include <sys/_bitset.h>
|
||||
|
||||
#ifdef _KERNEL
|
||||
#include <machine/param.h>
|
||||
|
||||
#define DOMAINSET_SETSIZE MAXMEMDOM
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue