mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-16 17:12:50 -04:00
x86/split_lock: Don't warn about unknown split_lock_detect parameter
The split_lock_detect command line parameter is handled in sld_setup() shortly after cpu_parse_early_param() but still before parse_early_param(). Add a dummy parsing function so that parse_early_param() doesn't later complain about the "unknown" parameter split_lock_detect=, and pass it along to init. [ bp: Massage commit message. ] Signed-off-by: Ronan Pigott <ronan@rjp.ie> Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Link: https://patch.msgid.link/20260405181807.3906-1-ronan@rjp.ie
This commit is contained in:
committed by
Borislav Petkov (AMD)
parent
f44cc3a48a
commit
fbe80bd699
@@ -132,6 +132,12 @@ static void __init sld_state_setup(void)
|
||||
sld_state = state;
|
||||
}
|
||||
|
||||
static __init int setup_split_lock_detect(char *arg)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
__setup("split_lock_detect=", setup_split_lock_detect);
|
||||
|
||||
static void __init __split_lock_setup(void)
|
||||
{
|
||||
if (!split_lock_verify_msr(false)) {
|
||||
|
||||
Reference in New Issue
Block a user