[PATCH] powerpc: Make cpu_spec __ro_after_init

Michael Ellerman patch-notifications at ellerman.id.au
Thu Dec 7 23:38:31 AEDT 2023

On Wed, 25 Oct 2023 12:24:52 +1100, Michael Ellerman wrote:
> The cpu_spec is a struct holding various information about the CPU the
> kernel is executing on. It's populated early in boot and must not change
> after that.
> In particular the cpu_features and mmu_features hold the set of
> discovered CPU/MMU features and are used to set static keys for each
> feature, and do binary patching of assembly. So any change to the
> cpu_features/mmu_features later in boot will not be reflected in
> the state of the static keys or patched code.
> [...]

Applied to powerpc/next.

[1/1] powerpc: Make cpu_spec __ro_after_init


More information about the Linuxppc-dev mailing list