aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/kernel
diff options
context:
space:
mode:
authorRavi Bangoria <ravi.bangoria@amd.com>2024-08-08 06:29:34 +0000
committerThomas Gleixner <tglx@linutronix.de>2024-08-08 18:02:15 +0200
commit350afa8a1101f62ce31bc4ed6f69cf4b90ec4fa2 (patch)
tree04d3e85eeb7401adca663838d3c637b45443ad3b /kernel
parentLinux 6.11-rc2 (diff)
downloadwireguard-linux-350afa8a1101f62ce31bc4ed6f69cf4b90ec4fa2.tar.xz
wireguard-linux-350afa8a1101f62ce31bc4ed6f69cf4b90ec4fa2.zip
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 'kernel')
-rw-r--r--kernel/fork.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/fork.c b/kernel/fork.c
index cc760491f201..7f1f3dc6f310 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -1182,7 +1182,7 @@ static struct task_struct *dup_task_struct(struct task_struct *orig, int node)
tsk->active_memcg = NULL;
#endif
-#ifdef CONFIG_CPU_SUP_INTEL
+#ifdef CONFIG_X86_BUS_LOCK_DETECT
tsk->reported_split_lock = 0;
#endif