diff options
| author | Dan Williams <dan.j.williams@intel.com> | 2009-09-08 20:55:21 -0400 |
|---|---|---|
| committer | Dan Williams <dan.j.williams@intel.com> | 2009-09-08 20:55:21 -0400 |
| commit | bbb20089a3275a19e475dbc21320c3742e3ca423 (patch) | |
| tree | 216fdc1cbef450ca688135c5b8969169482d9a48 /include/linux/lockdep.h | |
| parent | 3e48e656903e9fd8bc805c6a2c4264d7808d315b (diff) | |
| parent | 657a77fa7284d8ae28dfa48f1dc5d919bf5b2843 (diff) | |
Merge branch 'dmaengine' into async-tx-next
Conflicts:
crypto/async_tx/async_xor.c
drivers/dma/ioat/dma_v2.h
drivers/dma/ioat/pci.c
drivers/md/raid5.c
Diffstat (limited to 'include/linux/lockdep.h')
| -rw-r--r-- | include/linux/lockdep.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/linux/lockdep.h b/include/linux/lockdep.h index da5a5a1f4cd2..b25d1b53df0d 100644 --- a/include/linux/lockdep.h +++ b/include/linux/lockdep.h | |||
| @@ -258,6 +258,16 @@ extern void lockdep_init_map(struct lockdep_map *lock, const char *name, | |||
| 258 | #define lockdep_set_subclass(lock, sub) \ | 258 | #define lockdep_set_subclass(lock, sub) \ |
| 259 | lockdep_init_map(&(lock)->dep_map, #lock, \ | 259 | lockdep_init_map(&(lock)->dep_map, #lock, \ |
| 260 | (lock)->dep_map.key, sub) | 260 | (lock)->dep_map.key, sub) |
| 261 | /* | ||
| 262 | * Compare locking classes | ||
| 263 | */ | ||
| 264 | #define lockdep_match_class(lock, key) lockdep_match_key(&(lock)->dep_map, key) | ||
| 265 | |||
| 266 | static inline int lockdep_match_key(struct lockdep_map *lock, | ||
| 267 | struct lock_class_key *key) | ||
| 268 | { | ||
| 269 | return lock->key == key; | ||
| 270 | } | ||
| 261 | 271 | ||
| 262 | /* | 272 | /* |
| 263 | * Acquire a lock. | 273 | * Acquire a lock. |
| @@ -326,6 +336,11 @@ static inline void lockdep_on(void) | |||
| 326 | #define lockdep_set_class_and_subclass(lock, key, sub) \ | 336 | #define lockdep_set_class_and_subclass(lock, key, sub) \ |
| 327 | do { (void)(key); } while (0) | 337 | do { (void)(key); } while (0) |
| 328 | #define lockdep_set_subclass(lock, sub) do { } while (0) | 338 | #define lockdep_set_subclass(lock, sub) do { } while (0) |
| 339 | /* | ||
| 340 | * We don't define lockdep_match_class() and lockdep_match_key() for !LOCKDEP | ||
| 341 | * case since the result is not well defined and the caller should rather | ||
| 342 | * #ifdef the call himself. | ||
| 343 | */ | ||
| 329 | 344 | ||
| 330 | # define INIT_LOCKDEP | 345 | # define INIT_LOCKDEP |
| 331 | # define lockdep_reset() do { debug_locks = 1; } while (0) | 346 | # define lockdep_reset() do { debug_locks = 1; } while (0) |
