summaryrefslogtreecommitdiff
path: root/kern/spinlock_types.h
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2018-03-02 19:21:05 +0100
committerRichard Braun <rbraun@sceen.net>2018-03-02 22:52:02 +0100
commit43e07ea6df7f09b0a0853e3b9c55780aecaea393 (patch)
tree901cb0afac308e637e6c8e6495a016de935abd68 /kern/spinlock_types.h
parent045500a2c88f4e6b877a4695908eb129340f6782 (diff)
kern/spinlock: fix direct use of CONFIG_SPINLOCK_DEBUG
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 */