summaryrefslogtreecommitdiff
path: root/kern
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2023-08-11 12:37:38 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-08-12 01:18:27 +0200
commitc12d46e09a9600f71d87be4c037b3eaad2e995f6 (patch)
treea2d2e4038e83f5e456d852e74509bd2fe05cb5f0 /kern
parent5897901d6ee40427f76997c82c7fd64789a6ef7f (diff)
lock: Fix building with MACH_LDEBUG but NCPUS==1
Diffstat (limited to 'kern')
-rw-r--r--kern/lock.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/kern/lock.h b/kern/lock.h
index 3e55d1d4..0cf76ea7 100644
--- a/kern/lock.h
+++ b/kern/lock.h
@@ -46,7 +46,7 @@
#endif
#endif
-#define MACH_SLOCKS ((NCPUS > 1) || MACH_LDEBUG)
+#define MACH_SLOCKS NCPUS > 1
/*
* A simple spin lock.