]> www.infradead.org Git - users/jedix/linux-maple.git/commit
x86/split_lock: Move Split and Bus lock code to a dedicated file
authorRavi Bangoria <ravi.bangoria@amd.com>
Thu, 8 Aug 2024 06:29:34 +0000 (06:29 +0000)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 8 Aug 2024 16:02:15 +0000 (18:02 +0200)
commit350afa8a1101f62ce31bc4ed6f69cf4b90ec4fa2
tree04d3e85eeb7401adca663838d3c637b45443ad3b
parentde9c2c66ad8e787abec7c9d7eff4f8c3cdd28aed
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
arch/x86/Kconfig
arch/x86/include/asm/cpu.h
arch/x86/kernel/cpu/Makefile
arch/x86/kernel/cpu/bus_lock.c [new file with mode: 0644]
arch/x86/kernel/cpu/intel.c
include/linux/sched.h
kernel/fork.c