summaryrefslogtreecommitdiff
path: root/kern/mutex/mutex_adaptive.c
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2017-08-31 23:17:47 +0200
committerRichard Braun <rbraun@sceen.net>2017-08-31 23:17:47 +0200
commitc04c1bdd385af886422b89e1bf751b9a9d322ffc (patch)
treee41da5afb3e47cee6ab4655385d793ffa2ff757f /kern/mutex/mutex_adaptive.c
parentb9ec5cca6f6e3fd571b2e534d36e2498e488164c (diff)
Make mutex debugging slightly more convenient
Define the macro controlling mutex debugging only if not already defined, allowing users to pass it through CFLAGS.
Diffstat (limited to 'kern/mutex/mutex_adaptive.c')
-rw-r--r--kern/mutex/mutex_adaptive.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kern/mutex/mutex_adaptive.c b/kern/mutex/mutex_adaptive.c
index ceec8f10..d5cab2f4 100644
--- a/kern/mutex/mutex_adaptive.c
+++ b/kern/mutex/mutex_adaptive.c
@@ -31,8 +31,9 @@
#include <kern/thread.h>
#include <machine/cpu.h>
-/* Set to 1 to enable debugging */
+#ifndef MUTEX_ADAPTIVE_DEBUG
#define MUTEX_ADAPTIVE_DEBUG 0
+#endif /* MUTEX_ADAPTIVE_DEBUG */
#if MUTEX_ADAPTIVE_DEBUG