Merge "Revert "android: binder: Change binder mutex to rtmutex.""

This commit is contained in:
Linux Build Service Account 2015-08-16 16:19:52 -07:00 committed by Gerrit - the friendly Code Review server
commit 6b387bfcb9

View file

@ -26,7 +26,6 @@
#include <linux/miscdevice.h>
#include <linux/mm.h>
#include <linux/module.h>
#include <linux/rtmutex.h>
#include <linux/mutex.h>
#include <linux/nsproxy.h>
#include <linux/poll.h>
@ -46,7 +45,7 @@
#include <uapi/linux/android/binder.h>
#include "binder_trace.h"
static DEFINE_RT_MUTEX(binder_main_lock);
static DEFINE_MUTEX(binder_main_lock);
static DEFINE_MUTEX(binder_deferred_lock);
static DEFINE_MUTEX(binder_mmap_lock);
@ -426,14 +425,14 @@ static long task_close_fd(struct binder_proc *proc, unsigned int fd)
static inline void binder_lock(const char *tag)
{
trace_binder_lock(tag);
rt_mutex_lock(&binder_main_lock);
mutex_lock(&binder_main_lock);
trace_binder_locked(tag);
}
static inline void binder_unlock(const char *tag)
{
trace_binder_unlock(tag);
rt_mutex_unlock(&binder_main_lock);
mutex_unlock(&binder_main_lock);
}
static void binder_set_nice(long nice)