diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/debug_locks.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/debug_locks.h b/include/linux/debug_locks.h index 096476f1fb35..493dedb7a67b 100644 --- a/include/linux/debug_locks.h +++ b/include/linux/debug_locks.h | |||
@@ -2,12 +2,19 @@ | |||
2 | #define __LINUX_DEBUG_LOCKING_H | 2 | #define __LINUX_DEBUG_LOCKING_H |
3 | 3 | ||
4 | #include <linux/kernel.h> | 4 | #include <linux/kernel.h> |
5 | #include <asm/atomic.h> | ||
5 | 6 | ||
6 | struct task_struct; | 7 | struct task_struct; |
7 | 8 | ||
8 | extern int debug_locks; | 9 | extern int debug_locks; |
9 | extern int debug_locks_silent; | 10 | extern int debug_locks_silent; |
10 | 11 | ||
12 | |||
13 | static inline int __debug_locks_off(void) | ||
14 | { | ||
15 | return xchg(&debug_locks, 0); | ||
16 | } | ||
17 | |||
11 | /* | 18 | /* |
12 | * Generic 'turn off all lock debugging' function: | 19 | * Generic 'turn off all lock debugging' function: |
13 | */ | 20 | */ |