diff options
author | Bjoern Brandenburg <bbb@swan.cs.unc.edu> | 2007-02-20 13:57:17 -0500 |
---|---|---|
committer | Bjoern Brandenburg <bbb@swan.cs.unc.edu> | 2007-02-20 13:57:17 -0500 |
commit | c5b319e81dc0c5a5a40a4ccfd7f60bc529980d8b (patch) | |
tree | a8f2ed4b40d76d46827e6ce3b21742a3cb65f165 /include | |
parent | b1b47f277305060c7da17da927819343d54dab29 (diff) |
add _irqsave/_irqrestore macros to queuelock.h
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/queuelock.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/queuelock.h b/include/linux/queuelock.h index 236a2805bc..d60800d90e 100644 --- a/include/linux/queuelock.h +++ b/include/linux/queuelock.h | |||
@@ -85,4 +85,10 @@ static inline void queue_unlock(queuelock_t *lock) | |||
85 | lock->slots[(lock->spin_slot[me] + 1) % NR_CPUS].val = HAS_LOCK; | 85 | lock->slots[(lock->spin_slot[me] + 1) % NR_CPUS].val = HAS_LOCK; |
86 | } | 86 | } |
87 | 87 | ||
88 | #define queue_lock_irqsave(lock, flags) \ | ||
89 | do { local_irq_save(flags); queue_lock(lock); } while (0); | ||
90 | |||
91 | #define queue_unlock_irqrestore(lock, flags) \ | ||
92 | do { queue_unlock(lock); local_irq_restore(flags); } while (0); | ||
93 | |||
88 | #endif /* _UNC_QUEUELOCK_H_ */ | 94 | #endif /* _UNC_QUEUELOCK_H_ */ |