ANDROID: GKI: Add OEM data to mutex/rwsem
Reserve ANDROID_OEM_DATA in struct mutex/rw_semaphore for recoreding
informaition about the lock, which helps to do oem specific lock
optimization.
Bug: 188869548
Change-Id: I33f767a1823f854a8deb8ba9078079aa6a9d76ea
Signed-off-by: Liangliang Li <liliangliang@vivo.com>
(cherry picked from commit 372b24bad2)
This commit is contained in:
committed by
Carlos Llamas
parent
1dc9f51423
commit
45850948d1
@@ -19,6 +19,7 @@
|
|||||||
#include <asm/processor.h>
|
#include <asm/processor.h>
|
||||||
#include <linux/osq_lock.h>
|
#include <linux/osq_lock.h>
|
||||||
#include <linux/debug_locks.h>
|
#include <linux/debug_locks.h>
|
||||||
|
#include <linux/android_vendor.h>
|
||||||
|
|
||||||
#ifdef CONFIG_DEBUG_LOCK_ALLOC
|
#ifdef CONFIG_DEBUG_LOCK_ALLOC
|
||||||
# define __DEP_MAP_MUTEX_INITIALIZER(lockname) \
|
# define __DEP_MAP_MUTEX_INITIALIZER(lockname) \
|
||||||
@@ -73,6 +74,7 @@ struct mutex {
|
|||||||
#ifdef CONFIG_DEBUG_LOCK_ALLOC
|
#ifdef CONFIG_DEBUG_LOCK_ALLOC
|
||||||
struct lockdep_map dep_map;
|
struct lockdep_map dep_map;
|
||||||
#endif
|
#endif
|
||||||
|
ANDROID_OEM_DATA_ARRAY(1, 2);
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifdef CONFIG_DEBUG_MUTEXES
|
#ifdef CONFIG_DEBUG_MUTEXES
|
||||||
|
|||||||
@@ -66,6 +66,7 @@ struct rw_semaphore {
|
|||||||
struct lockdep_map dep_map;
|
struct lockdep_map dep_map;
|
||||||
#endif
|
#endif
|
||||||
ANDROID_VENDOR_DATA(1);
|
ANDROID_VENDOR_DATA(1);
|
||||||
|
ANDROID_OEM_DATA_ARRAY(1, 2);
|
||||||
};
|
};
|
||||||
|
|
||||||
enum rwsem_waiter_type {
|
enum rwsem_waiter_type {
|
||||||
|
|||||||
Reference in New Issue
Block a user