Re: [PATCH v2 1/3] x86/cpu: Defer LASS enabling until userspace comes up
From: Dave Hansen
Date: Tue Mar 03 2026 - 12:44:00 EST
On 2/19/26 13:02, Sohil Mehta wrote:
> The current patch
> https://lore.kernel.org/lkml/1bc0b798-9cef-4dfd-af06-7674b699af1b@xxxxxxxxx/
>
> ..to defer CR pinning enforcement until CPU online makes sense for the
> FRED fix. Eventually, I am thinking we can defer CR pinning even further
> until userspace comes up.
>
> setup_cr_pinning(), which enables the static key, can be moved to a
> late_initcall() such as above. The cpu_online() check to enforce CR
> pinning would still be needed to make it play nice with CPU hotplug.
>
> Do you see an issue with that approach?
Seems fine to me.