Gitiles
Code Review
Sign In
LeafOS
/
LeafOS-Devices
/
android_kernel_samsung_gta4xl
/
b609338b26f5653aa211fc7af83477e2df6e3f0b
/
.
/
tools
/
include
/
linux
/
spinlock.h
blob: 58397dcb19d6092a607478d070a850f162e49bed [
file
] [
log
] [
blame
]
#define
spinlock_t
pthread_mutex_t
#define
DEFINE_SPINLOCK
(
x
)
pthread_mutex_t
x
=
PTHREAD_MUTEX_INITIALIZER
;
#define
spin_lock_irqsave
(
x
,
f
)
(
void
)
f
,
pthread_mutex_lock
(
x
)
#define
spin_unlock_irqrestore
(
x
,
f
)
(
void
)
f
,
pthread_mutex_unlock
(
x
)