Re: [PATCH v3 1/3] drivers: qcom: rpmh-rsc: simplify TCS locking

2018-10-24 Thread Lina Iyer
On Tue, Oct 09 2018 at 20:08 -0600, Raju P.L.S.S.S.N wrote: 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

[PATCH v3 1/3] drivers: qcom: rpmh-rsc: simplify TCS locking

2018-10-08 Thread Raju P.L.S.S.S.N
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 r