diff options
| author | Ingo Molnar <mingo@elte.hu> | 2008-07-07 02:01:26 -0400 |
|---|---|---|
| committer | Ingo Molnar <mingo@elte.hu> | 2008-07-07 02:01:26 -0400 |
| commit | 032f82786f9be4635acaa5f77feca175a4ac5fe1 (patch) | |
| tree | 11ce43c1086d3dec43c92b0a2cc740240b338fb7 /include/linux/debug_locks.h | |
| parent | 46ac22bab42cc868b9c1d0e915ddbc8e8065a44d (diff) | |
| parent | b7279469d66b55119784b8b9529c99c1955fe747 (diff) | |
Merge commit 'v2.6.26-rc9' into sched/devel
Diffstat (limited to 'include/linux/debug_locks.h')
| -rw-r--r-- | include/linux/debug_locks.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/include/linux/debug_locks.h b/include/linux/debug_locks.h index f4a5871767f5..4aaa4afb1cb9 100644 --- a/include/linux/debug_locks.h +++ b/include/linux/debug_locks.h | |||
| @@ -1,6 +1,8 @@ | |||
| 1 | #ifndef __LINUX_DEBUG_LOCKING_H | 1 | #ifndef __LINUX_DEBUG_LOCKING_H |
| 2 | #define __LINUX_DEBUG_LOCKING_H | 2 | #define __LINUX_DEBUG_LOCKING_H |
| 3 | 3 | ||
| 4 | #include <linux/kernel.h> | ||
| 5 | |||
| 4 | struct task_struct; | 6 | struct task_struct; |
| 5 | 7 | ||
| 6 | extern int debug_locks; | 8 | extern int debug_locks; |
| @@ -11,14 +13,6 @@ extern int debug_locks_silent; | |||
| 11 | */ | 13 | */ |
| 12 | extern int debug_locks_off(void); | 14 | extern int debug_locks_off(void); |
| 13 | 15 | ||
| 14 | /* | ||
| 15 | * In the debug case we carry the caller's instruction pointer into | ||
| 16 | * other functions, but we dont want the function argument overhead | ||
| 17 | * in the nondebug case - hence these macros: | ||
| 18 | */ | ||
| 19 | #define _RET_IP_ (unsigned long)__builtin_return_address(0) | ||
| 20 | #define _THIS_IP_ ({ __label__ __here; __here: (unsigned long)&&__here; }) | ||
| 21 | |||
| 22 | #define DEBUG_LOCKS_WARN_ON(c) \ | 16 | #define DEBUG_LOCKS_WARN_ON(c) \ |
| 23 | ({ \ | 17 | ({ \ |
| 24 | int __ret = 0; \ | 18 | int __ret = 0; \ |
