diff options
| author | Ingo Molnar <mingo@elte.hu> | 2008-09-05 12:56:57 -0400 | 
|---|---|---|
| committer | Ingo Molnar <mingo@elte.hu> | 2008-09-05 12:56:57 -0400 | 
| commit | 616ad8c44281c0c6711a72b560e01ec335ff27e0 (patch) | |
| tree | 0a20453ffedb09db6fb41a0c2208ccc2c7751d3a /include/linux/spinlock.h | |
| parent | 99809963c99e1ed868d9ebeb4a5e7ee1cbe0309f (diff) | |
| parent | b380b0d4f7dffcc235c0facefa537d4655619101 (diff) | |
Merge branch 'linus' into x86/defconfig
Diffstat (limited to 'include/linux/spinlock.h')
| -rw-r--r-- | include/linux/spinlock.h | 6 | 
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/spinlock.h b/include/linux/spinlock.h index 61e5610ad165..e0c0fccced46 100644 --- a/include/linux/spinlock.h +++ b/include/linux/spinlock.h  | |||
| @@ -183,8 +183,14 @@ do { \ | |||
| 183 | 183 | ||
| 184 | #ifdef CONFIG_DEBUG_LOCK_ALLOC | 184 | #ifdef CONFIG_DEBUG_LOCK_ALLOC | 
| 185 | # define spin_lock_nested(lock, subclass) _spin_lock_nested(lock, subclass) | 185 | # define spin_lock_nested(lock, subclass) _spin_lock_nested(lock, subclass) | 
| 186 | # define spin_lock_nest_lock(lock, nest_lock) \ | ||
| 187 | do { \ | ||
| 188 | typecheck(struct lockdep_map *, &(nest_lock)->dep_map);\ | ||
| 189 | _spin_lock_nest_lock(lock, &(nest_lock)->dep_map); \ | ||
| 190 | } while (0) | ||
| 186 | #else | 191 | #else | 
| 187 | # define spin_lock_nested(lock, subclass) _spin_lock(lock) | 192 | # define spin_lock_nested(lock, subclass) _spin_lock(lock) | 
| 193 | # define spin_lock_nest_lock(lock, nest_lock) _spin_lock(lock) | ||
| 188 | #endif | 194 | #endif | 
| 189 | 195 | ||
| 190 | #define write_lock(lock) _write_lock(lock) | 196 | #define write_lock(lock) _write_lock(lock) | 
