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

Commit 66d639a7 authored by Eric Holmberg's avatar Eric Holmberg Committed by Gerrit - the friendly Code Review server
Browse files

soc: qcom: glink: add read/write reference lock



Some internal data structures can be freed in several different code
paths depending upon their state.  To reduce the likelihood of memory
leaks, these structures are reference counted.  In addition, some code
paths will read from the objects and others will write to them.  To
minimize the amount of time in atomic context, the reference counts can
be classified as either reader or writer which allows multiple readers
to hold the lock at a single time.

Combine a reference lock with read/write lock to handle this use case.

Change-Id: Icaf5d0dd639422582dcdd80acb54a342fc0f1c3c
Signed-off-by: default avatarEric Holmberg <eholmber@codeaurora.org>
parent 3570a3f9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment