From c72c74b8544763f536566d3004a2cc957f1b1937 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Wed, 12 Feb 2025 02:04:19 +0100 Subject: lock: Also enable non-SMP slock checking code on MACH_LDEBUG --- kern/lock.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kern/lock.h') diff --git a/kern/lock.h b/kern/lock.h index ebc57dbf..6c976eab 100644 --- a/kern/lock.h +++ b/kern/lock.h @@ -71,7 +71,7 @@ #endif #endif -#define MACH_SLOCKS NCPUS > 1 +#define MACH_SLOCKS ((NCPUS > 1) || MACH_LDEBUG) /* * A simple spin lock. -- cgit v1.2.3