Re: [PATCH] x86/alternative: Drop smp_locks glue

From: Peter Zijlstra

Date: Sat Jun 13 2026 - 16:17:35 EST


On Sat, Jun 13, 2026 at 11:56:32AM -0700, Borislav Petkov wrote:
> From: "Borislav Petkov (AMD)" <bp@xxxxxxxxx>
> Date: Sat, 13 Jun 2026 10:15:27 -0700
>
> This was there to be able to patch out locking instructions when running
> a SMP kernel build on a UP CPU. The times are long gone when single-CPU
> x86 machines were relevant so drop that machinery and simplify the code
> considerably.
>
> LOCK_PREFIX needs to stay for when one wants to do a UP build for
> whatever reason. That'll go away when CONFIG_SMP becomes unconditional.
>
> Kill a bunch of leftover, unused prototypes while at it.
>
> Signed-off-by: Borislav Petkov (AMD) <bp@xxxxxxxxx>

Good riddance

Acked-by: Peter Zijlstra (Intel) <peterz@xxxxxxxxxxxxx>