diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-07-27 22:07:53 +0000 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-07-27 22:07:53 +0000 |
commit | 4fbe7358c7747a9165f776eb19addbb9baf7def2 (patch) | |
tree | bc7076b4f6d10c2cc2942539bb666e50f0b66954 /libdde_linux26/contrib/include/linux/debug_locks.h | |
parent | 21adb5284111190057db245cfc2b54091920c373 (diff) |
rename libdde_linux26 into libdde-linux26 to make dpkg-source happy
Diffstat (limited to 'libdde_linux26/contrib/include/linux/debug_locks.h')
-rw-r--r-- | libdde_linux26/contrib/include/linux/debug_locks.h | 72 |
1 files changed, 0 insertions, 72 deletions
diff --git a/libdde_linux26/contrib/include/linux/debug_locks.h b/libdde_linux26/contrib/include/linux/debug_locks.h deleted file mode 100644 index 096476f1..00000000 --- a/libdde_linux26/contrib/include/linux/debug_locks.h +++ /dev/null @@ -1,72 +0,0 @@ -#ifndef __LINUX_DEBUG_LOCKING_H -#define __LINUX_DEBUG_LOCKING_H - -#include <linux/kernel.h> - -struct task_struct; - -extern int debug_locks; -extern int debug_locks_silent; - -/* - * Generic 'turn off all lock debugging' function: - */ -extern int debug_locks_off(void); - -#define DEBUG_LOCKS_WARN_ON(c) \ -({ \ - int __ret = 0; \ - \ - if (!oops_in_progress && unlikely(c)) { \ - if (debug_locks_off() && !debug_locks_silent) \ - WARN_ON(1); \ - __ret = 1; \ - } \ - __ret; \ -}) - -#ifdef CONFIG_SMP -# define SMP_DEBUG_LOCKS_WARN_ON(c) DEBUG_LOCKS_WARN_ON(c) -#else -# define SMP_DEBUG_LOCKS_WARN_ON(c) do { } while (0) -#endif - -#ifdef CONFIG_DEBUG_LOCKING_API_SELFTESTS - extern void locking_selftest(void); -#else -# define locking_selftest() do { } while (0) -#endif - -struct task_struct; - -#ifdef CONFIG_LOCKDEP -extern void debug_show_all_locks(void); -extern void __debug_show_held_locks(struct task_struct *task); -extern void debug_show_held_locks(struct task_struct *task); -extern void debug_check_no_locks_freed(const void *from, unsigned long len); -extern void debug_check_no_locks_held(struct task_struct *task); -#else -static inline void debug_show_all_locks(void) -{ -} - -static inline void __debug_show_held_locks(struct task_struct *task) -{ -} - -static inline void debug_show_held_locks(struct task_struct *task) -{ -} - -static inline void -debug_check_no_locks_freed(const void *from, unsigned long len) -{ -} - -static inline void -debug_check_no_locks_held(struct task_struct *task) -{ -} -#endif - -#endif |