HomeFreeBSD

arm64: Read the CPU feature tunables once

Description

arm64: Read the CPU feature tunables once

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
Differential Revision: https://reviews.freebsd.org/D52578

(cherry picked from commit 5e0e2565288f3d1f1b4223d8bb53c7d70e0aa92c)

Details

Provenance
andrewAuthored on Sep 19 2025, 10:05 AM
Differential Revision
D52578: arm64: Read the CPU feature tunables once
Parents
rG20fee5aa5053: arm64: Add cpu_feat_disabled for disabled features
Branches
Unknown
Tags
Unknown