aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/lockdep.h
diff options
context:
space:
mode:
authorJonathan Herman <hermanjl@cs.unc.edu>2013-01-17 16:15:55 -0500
committerJonathan Herman <hermanjl@cs.unc.edu>2013-01-17 16:15:55 -0500
commit8dea78da5cee153b8af9c07a2745f6c55057fe12 (patch)
treea8f4d49d63b1ecc92f2fddceba0655b2472c5bd9 /include/linux/lockdep.h
parent406089d01562f1e2bf9f089fd7637009ebaad589 (diff)
Patched in Tegra support.
Diffstat (limited to 'include/linux/lockdep.h')
-rw-r--r--include/linux/lockdep.h27
1 files changed, 1 insertions, 26 deletions
diff --git a/include/linux/lockdep.h b/include/linux/lockdep.h
index 2bca44b0893..ef820a3c378 100644
--- a/include/linux/lockdep.h
+++ b/include/linux/lockdep.h
@@ -157,24 +157,6 @@ struct lockdep_map {
157#endif 157#endif
158}; 158};
159 159
160static inline void lockdep_copy_map(struct lockdep_map *to,
161 struct lockdep_map *from)
162{
163 int i;
164
165 *to = *from;
166 /*
167 * Since the class cache can be modified concurrently we could observe
168 * half pointers (64bit arch using 32bit copy insns). Therefore clear
169 * the caches and take the performance hit.
170 *
171 * XXX it doesn't work well with lockdep_set_class_and_subclass(), since
172 * that relies on cache abuse.
173 */
174 for (i = 0; i < NR_LOCKDEP_CACHING_CLASSES; i++)
175 to->class_cache[i] = NULL;
176}
177
178/* 160/*
179 * Every lock has a list of other locks that were taken after it. 161 * Every lock has a list of other locks that were taken after it.
180 * We only grow the list, never remove from it: 162 * We only grow the list, never remove from it:
@@ -361,8 +343,6 @@ extern void lockdep_trace_alloc(gfp_t mask);
361 343
362#define lockdep_assert_held(l) WARN_ON(debug_locks && !lockdep_is_held(l)) 344#define lockdep_assert_held(l) WARN_ON(debug_locks && !lockdep_is_held(l))
363 345
364#define lockdep_recursing(tsk) ((tsk)->lockdep_recursion)
365
366#else /* !LOCKDEP */ 346#else /* !LOCKDEP */
367 347
368static inline void lockdep_off(void) 348static inline void lockdep_off(void)
@@ -412,8 +392,6 @@ struct lock_class_key { };
412 392
413#define lockdep_assert_held(l) do { } while (0) 393#define lockdep_assert_held(l) do { } while (0)
414 394
415#define lockdep_recursing(tsk) (0)
416
417#endif /* !LOCKDEP */ 395#endif /* !LOCKDEP */
418 396
419#ifdef CONFIG_LOCK_STAT 397#ifdef CONFIG_LOCK_STAT
@@ -524,17 +502,14 @@ static inline void print_irqtrace_events(struct task_struct *curr)
524#ifdef CONFIG_DEBUG_LOCK_ALLOC 502#ifdef CONFIG_DEBUG_LOCK_ALLOC
525# ifdef CONFIG_PROVE_LOCKING 503# ifdef CONFIG_PROVE_LOCKING
526# define rwsem_acquire(l, s, t, i) lock_acquire(l, s, t, 0, 2, NULL, i) 504# define rwsem_acquire(l, s, t, i) lock_acquire(l, s, t, 0, 2, NULL, i)
527# define rwsem_acquire_nest(l, s, t, n, i) lock_acquire(l, s, t, 0, 2, n, i)
528# define rwsem_acquire_read(l, s, t, i) lock_acquire(l, s, t, 1, 2, NULL, i) 505# define rwsem_acquire_read(l, s, t, i) lock_acquire(l, s, t, 1, 2, NULL, i)
529# else 506# else
530# define rwsem_acquire(l, s, t, i) lock_acquire(l, s, t, 0, 1, NULL, i) 507# define rwsem_acquire(l, s, t, i) lock_acquire(l, s, t, 0, 1, NULL, i)
531# define rwsem_acquire_nest(l, s, t, n, i) lock_acquire(l, s, t, 0, 1, n, i)
532# define rwsem_acquire_read(l, s, t, i) lock_acquire(l, s, t, 1, 1, NULL, i) 508# define rwsem_acquire_read(l, s, t, i) lock_acquire(l, s, t, 1, 1, NULL, i)
533# endif 509# endif
534# define rwsem_release(l, n, i) lock_release(l, n, i) 510# define rwsem_release(l, n, i) lock_release(l, n, i)
535#else 511#else
536# define rwsem_acquire(l, s, t, i) do { } while (0) 512# define rwsem_acquire(l, s, t, i) do { } while (0)
537# define rwsem_acquire_nest(l, s, t, n, i) do { } while (0)
538# define rwsem_acquire_read(l, s, t, i) do { } while (0) 513# define rwsem_acquire_read(l, s, t, i) do { } while (0)
539# define rwsem_release(l, n, i) do { } while (0) 514# define rwsem_release(l, n, i) do { } while (0)
540#endif 515#endif
@@ -573,7 +548,7 @@ do { \
573#endif 548#endif
574 549
575#ifdef CONFIG_PROVE_RCU 550#ifdef CONFIG_PROVE_RCU
576void lockdep_rcu_suspicious(const char *file, const int line, const char *s); 551extern void lockdep_rcu_dereference(const char *file, const int line);
577#endif 552#endif
578 553
579#endif /* __LINUX_LOCKDEP_H */ 554#endif /* __LINUX_LOCKDEP_H */