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

Commit 2fe41840 authored by Utkarsh Saxena's avatar Utkarsh Saxena
Browse files

msm: ipa: Fix incorrect wakelock handling



With the current logic __pm_stay_awake is
called whenever wakelock ref cnt is non-zero
and released only when it is 0. Make a change
to acquire wakelock only when it is not held
previously and releasing time chaeck and
release it only if it is held previously.

Change-Id: I8c61c184506c705fd5866de8a606f642c5de3d5b
Acked-by: default avatarChaitanya Pratapa <cpratapa@qti.qualcomm.com>
Signed-off-by: default avatarUtkarsh Saxena <usaxena@codeaurora.org>
parent bc387ed2
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