Page MenuHomeFreeBSD

arm64: Read the CPU feature tunables once
ClosedPublic

Authored by andrew on Sep 16 2025, 4:51 PM.
Tags
None
Referenced Files
F133219862: D52578.id.diff
Fri, Oct 24, 2:10 AM
Unknown Object (File)
Thu, Oct 16, 10:14 AM
Unknown Object (File)
Thu, Oct 16, 9:57 AM
Unknown Object (File)
Thu, Oct 16, 3:02 AM
Unknown Object (File)
Tue, Oct 14, 3:25 PM
Unknown Object (File)
Tue, Oct 14, 2:03 AM
Unknown Object (File)
Mon, Oct 13, 12:30 PM
Unknown Object (File)
Mon, Oct 13, 12:30 PM
Subscribers

Details

Summary

Rather than reading the CPU tunables each time we enable a feature
just read them once on boot. Reading them early on non-boot CPUs
causes issues where they try to allocate memory before the core is set
up to do so. As they don't change it is safe to cache the state of
them.

Sponsored by: Arm Ltd

Diff Detail

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