Re: [PATCH -v2] x86/split_lock: Restructure the unwieldy switch-case in sld_state_show()
From: Xiaoyao Li
Date: Thu Mar 05 2026 - 21:58:12 EST
On 2/26/2026 10:50 PM, Borislav Petkov wrote:
From: "Borislav Petkov (AMD)" <bp@xxxxxxxxx>
Date: Sun, 4 Jan 2026 14:40:23 +0100
Split the handling in two parts:
1. handle the sld_state option first
2. handle X86_FEATURE flag-based printing afterwards
This splits the function nicely into two, separate logical things which
are easier to parse and understand.
Also, zap the printing in the disabled case.
How about mentioning the change of registering CPU offline callback for fatal mode as well?
Signed-off-by: Borislav Petkov (AMD) <bp@xxxxxxxxx>
Reviewed-by: Xiaoyao Li <xiaoyao.li@xxxxxxxxx>