Gitiles
Code Review
Sign In
LeafOS
/
LeafOS-Devices
/
android_kernel_realme_mt6785
/
16b76293c5c81e6345323d7aef41b26e8390f62d
/
.
/
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
)