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

Skip to content
Commit 7031885d authored by Raju P.L.S.S.S.N's avatar Raju P.L.S.S.S.N Committed by Lina Iyer
Browse files

drivers: qcom: rpmh-rsc: simplify TCS locking



tcs->lock was introduced to serialize access with in TCS group. But
even without tcs->lock, drv->lock is serving the same purpose. So
use single drv->lock.

Other optimizations include -
 - Remove locking around clear_bit() in IRQ handler. clear_bit() is
   atomic.
 - Remove redundant read of TCS registers.
 - Use spin_lock instead of _irq variants as the locks are not held
   in interrupt context.

Change-Id: I803d284093eb70bb729f5bee6eb79841bc18f90d
Signed-off-by: default avatarRaju P.L.S.S.S.N <rplsssn@codeaurora.org>
Signed-off-by: default avatarLina Iyer <ilina@codeaurora.org>
parent a9a9aafa
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