Page MenuHomeFreeBSD

arm64: Read the CPU feature tunables once
ClosedPublic

Authored by andrew on Sep 16 2025, 4:51 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Aug 18, 6:18 AM
Unknown Object (File)
Fri, Aug 14, 10:00 PM
Unknown Object (File)
Tue, Aug 11, 2:00 PM
Unknown Object (File)
Mon, Aug 10, 7:59 AM
Unknown Object (File)
Sun, Aug 9, 6:51 AM
Unknown Object (File)
Sat, Aug 8, 7:59 PM
Unknown Object (File)
Sat, Aug 8, 4:24 PM
Unknown Object (File)
Fri, Aug 7, 5:02 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