1 #ifndef __SND_SEQ_LOCK_H
2 #define __SND_SEQ_LOCK_H
4 #include <linux/sched.h>
6 #if defined(CONFIG_SMP) || defined(CONFIG_SND_DEBUG)
11 #define snd_use_lock_init(lockp) atomic_set(lockp, 0)
14 #define snd_use_lock_use(lockp) atomic_inc(lockp)
17 #define snd_use_lock_free(lockp) atomic_dec(lockp)
21 #define snd_use_lock_sync(lockp) snd_use_lock_sync_helper(lockp, __BASE_FILE__, __LINE__)
26 #define snd_use_lock_init(lockp)
27 #define snd_use_lock_use(lockp)
28 #define snd_use_lock_free(lockp)
29 #define snd_use_lock_sync(lockp)