|
RTEMS
5.1
|
1 #ifndef __LINUX_SPINLOCK_H__ 2 #define __LINUX_SPINLOCK_H__ 6 #define SPIN_LOCK_UNLOCKED (spinlock_t) { } 7 #define DEFINE_SPINLOCK(x) spinlock_t x = SPIN_LOCK_UNLOCKED 9 #define spin_lock_init(lock) \ 11 CYG_UNUSED_PARAM(spinlock_t *, lock); \ 14 #define spin_lock(lock) \ 16 CYG_UNUSED_PARAM(spinlock_t *, lock); \ 19 #define spin_unlock(lock) \ 21 CYG_UNUSED_PARAM(spinlock_t *, lock); \ 24 #define spin_lock_bh(lock) \ 26 CYG_UNUSED_PARAM(spinlock_t *, lock); \ 29 #define spin_unlock_bh(lock) \ 31 CYG_UNUSED_PARAM(spinlock_t *, lock); \