From 43e07ea6df7f09b0a0853e3b9c55780aecaea393 Mon Sep 17 00:00:00 2001 From: Richard Braun Date: Fri, 2 Mar 2018 19:21:05 +0100 Subject: kern/spinlock: fix direct use of CONFIG_SPINLOCK_DEBUG --- kern/spinlock_types.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'kern/spinlock_types.h') 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 */ -- cgit v1.2.3