mirror of
https://github.com/AetherDroid/android_kernel_samsung_on5xelte.git
synced 2025-09-10 17:32:46 -04:00
Fixed MTP to work with TWRP
This commit is contained in:
commit
f6dfaef42e
50820 changed files with 20846062 additions and 0 deletions
25
tools/lib/lockdep/uinclude/linux/spinlock.h
Normal file
25
tools/lib/lockdep/uinclude/linux/spinlock.h
Normal file
|
@ -0,0 +1,25 @@
|
|||
#ifndef _LIBLOCKDEP_SPINLOCK_H_
|
||||
#define _LIBLOCKDEP_SPINLOCK_H_
|
||||
|
||||
#include <pthread.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#define arch_spinlock_t pthread_mutex_t
|
||||
#define __ARCH_SPIN_LOCK_UNLOCKED PTHREAD_MUTEX_INITIALIZER
|
||||
|
||||
static inline void arch_spin_lock(arch_spinlock_t *mutex)
|
||||
{
|
||||
pthread_mutex_lock(mutex);
|
||||
}
|
||||
|
||||
static inline void arch_spin_unlock(arch_spinlock_t *mutex)
|
||||
{
|
||||
pthread_mutex_unlock(mutex);
|
||||
}
|
||||
|
||||
static inline bool arch_spin_is_locked(arch_spinlock_t *mutex)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue