Page MenuHomeFreeBSD

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

Authored by brooks on Mar 21 2024, 11:39 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 9, 2:00 AM
Unknown Object (File)
Sat, Nov 9, 1:43 AM
Unknown Object (File)
Fri, Nov 8, 9:15 PM
Unknown Object (File)
Oct 23 2024, 10:46 PM
Unknown Object (File)
Oct 23 2024, 10:46 PM
Unknown Object (File)
Oct 23 2024, 10:46 PM
Unknown Object (File)
Oct 23 2024, 10:31 PM
Unknown Object (File)
Oct 2 2024, 5:12 AM
Subscribers
None

Details

Summary

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.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

brooks created this revision.

Alternatively we could require that consumers include sys/param.h and then only the the !RCTL case in sys/kern/kern_rctl.c needs changing, but this seems tidier.

This revision is now accepted and ready to land.Mar 22 2024, 3:17 AM