Home
last modified time | relevance | path

Searched refs:__LOCK (Results 1 – 1 of 1) sorted by relevance

/development/ndk/platforms/android-3/include/linux/
Dspinlock_api_up.h23 #define __LOCK(lock) do { preempt_disable(); __acquire(lock); (void)(lock); } while (0) macro
25 #define __LOCK_BH(lock) do { local_bh_disable(); __LOCK(lock); } while (0)
27 #define __LOCK_IRQ(lock) do { local_irq_disable(); __LOCK(lock); } while (0)
29 #define __LOCK_IRQSAVE(lock, flags) do { local_irq_save(flags); __LOCK(lock); } while (0)
39 #define _spin_lock(lock) __LOCK(lock)
40 #define _spin_lock_nested(lock, subclass) __LOCK(lock)
41 #define _read_lock(lock) __LOCK(lock)
42 #define _write_lock(lock) __LOCK(lock)
52 #define _spin_trylock(lock) ({ __LOCK(lock); 1; })
53 #define _read_trylock(lock) ({ __LOCK(lock); 1; })
[all …]