summaryrefslogtreecommitdiff
path: root/kern/spinlock_types.h
diff options
context:
space:
mode:
Diffstat (limited to 'kern/spinlock_types.h')
-rw-r--r--kern/spinlock_types.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/kern/spinlock_types.h b/kern/spinlock_types.h
index 89d79829..301b8933 100644
--- a/kern/spinlock_types.h
+++ b/kern/spinlock_types.h
@@ -21,14 +21,18 @@
#ifndef KERN_SPINLOCK_TYPES_H
#define KERN_SPINLOCK_TYPES_H
+#ifdef CONFIG_SPINLOCK_DEBUG
+#define SPINLOCK_TRACK_OWNER
+#endif
+
struct thread;
struct spinlock {
unsigned int value;
-#ifdef CONFIG_SPINLOCK_DEBUG
+#ifdef SPINLOCK_TRACK_OWNER
struct thread *owner;
-#endif /* CONFIG_SPINLOCK_DEBUG */
+#endif /* SPINLOCK_TRACK_OWNER */
};
#endif /* KERN_SPINLOCK_TYPES_H */