diff options
author | Ravi Bangoria <ravi.bangoria@amd.com> | 2024-08-08 06:29:34 +0000 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2024-08-08 18:02:15 +0200 |
commit | 350afa8a1101f62ce31bc4ed6f69cf4b90ec4fa2 (patch) | |
tree | 04d3e85eeb7401adca663838d3c637b45443ad3b /arch/x86/Kconfig | |
parent | de9c2c66ad8e787abec7c9d7eff4f8c3cdd28aed (diff) |
x86/split_lock: Move Split and Bus lock code to a dedicated file
Bus Lock Detect functionality on AMD platforms works identical to Intel.
Move split_lock and bus_lock specific code from intel.c to a dedicated
file so that it can be compiled and supported on non-Intel platforms.
Also, introduce CONFIG_X86_BUS_LOCK_DETECT, make it dependent on
CONFIG_CPU_SUP_INTEL and add compilation dependency of the new bus_lock.c
file on CONFIG_X86_BUS_LOCK_DETECT.
Signed-off-by: Ravi Bangoria <ravi.bangoria@amd.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Tom Lendacky <thomas.lendacky@amd.com>
Link: https://lore.kernel.org/all/20240808062937.1149-2-ravi.bangoria@amd.com
Diffstat (limited to 'arch/x86/Kconfig')
-rw-r--r-- | arch/x86/Kconfig | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 007bab9f2a0e..9c4e69a1ae7a 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -2426,6 +2426,14 @@ config CFI_AUTO_DEFAULT source "kernel/livepatch/Kconfig" +config X86_BUS_LOCK_DETECT + bool "Split Lock Detect and Bus Lock Detect support" + depends on CPU_SUP_INTEL + default y + help + Enable Split Lock Detect and Bus Lock Detect functionalities. + See <file:Documentation/arch/x86/buslock.rst> for more information. + endmenu config CC_HAS_NAMED_AS |