]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blob - tools/include/linux/spinlock.h
Merge remote-tracking branches 'regulator/topic/notifier', 'regulator/topic/pfuze100...
[mirror_ubuntu-artful-kernel.git] / tools / include / linux / spinlock.h
1 #define spinlock_t pthread_mutex_t
2 #define DEFINE_SPINLOCK(x) pthread_mutex_t x = PTHREAD_MUTEX_INITIALIZER;
3
4 #define spin_lock_irqsave(x, f) (void)f, pthread_mutex_lock(x)
5 #define spin_unlock_irqrestore(x, f) (void)f, pthread_mutex_unlock(x)