diff options
author | Brooks Davis <brooks@FreeBSD.org> | 2024-04-15 16:53:39 +0000 |
---|---|---|
committer | Brooks Davis <brooks@FreeBSD.org> | 2024-04-15 20:35:40 +0000 |
commit | b83d3eb5b79860c20829d599630e7eae03d7fd53 (patch) | |
tree | 5c1b4385fe008750a6bb76ebb37671dad35c3a24 /sys/sys | |
parent | 6bb132ba1e4e28cf1e713c8dcd77f2e8af7bde88 (diff) | |
download | src-b83d3eb5b79860c20829d599630e7eae03d7fd53.tar.gz src-b83d3eb5b79860c20829d599630e7eae03d7fd53.zip |
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
Diffstat (limited to 'sys/sys')
-rw-r--r-- | sys/sys/_cpuset.h | 2 | ||||
-rw-r--r-- | sys/sys/_domainset.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/sys/sys/_cpuset.h b/sys/sys/_cpuset.h index 8b77721f4b3c..b87cfb5d3f80 100644 --- a/sys/sys/_cpuset.h +++ b/sys/sys/_cpuset.h @@ -35,6 +35,8 @@ #include <sys/_bitset.h> #ifdef _KERNEL +#include <machine/param.h> + #define CPU_SETSIZE MAXCPU #endif diff --git a/sys/sys/_domainset.h b/sys/sys/_domainset.h index 11ddef0e1909..857aaba67990 100644 --- a/sys/sys/_domainset.h +++ b/sys/sys/_domainset.h @@ -32,6 +32,8 @@ #include <sys/_bitset.h> #ifdef _KERNEL +#include <machine/param.h> + #define DOMAINSET_SETSIZE MAXMEMDOM #endif |