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 https://git.kernel.org/powerpc/c/98eb30fe4c69a9b602f29e406317c49b5580352a cheers