Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9298a1e6 authored by Maria Yu's avatar Maria Yu Committed by Will McVicker
Browse files

ANDROID: GKI: locking/rwsem: add vendor field to struct rw_semaphore



For ABI compatibility, we are adding a vendor field to support the
config CONFIG_RWSEM_PRIO_AWARE.

Bug: 151792119
Bug: 148872640
Signed-off-by: default avatarMaria Yu <aiquny@codeaurora.org>
Signed-off-by: default avatarBiao long <blong@codeaurora.org>
[willmcvicker: Only cherry-picked the ABI diff]
(cherry picked from commit c4b6927b)
Signed-off-by: default avatarWill McVicker <willmcvicker@google.com>
Change-Id: I3f289e2992af340b56c2df532ffeb418abf3da79
parent 46a302bb
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -42,6 +42,11 @@ struct rw_semaphore {
#ifdef CONFIG_DEBUG_LOCK_ALLOC
	struct lockdep_map	dep_map;
#endif
        /* NOTICE: m_count is a vendor variable used for the config
         * CONFIG_RWSEM_PRIO_AWARE. This is included here to maintain ABI
         * compatibility with our vendors */
        /* count for waiters preempt to queue in wait list */
	long m_count;
};

/*