diff options
| author | Utkarsh Saxena <usaxena@codeaurora.org> | 2017-03-07 16:53:38 +0530 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2017-03-09 09:16:54 -0800 |
| commit | b09c22c040d134cc316048e95be617199d4da7ec (patch) | |
| tree | 399e93d1b4c2d5810950133e66c94125486e3645 /security/selinux/hooks.c | |
| parent | 9bf700385d74d738a0f6d982886ed8a51ae8fbb9 (diff) | |
msm: ipa: Fix incorrect wakelock handling
For every __pm_stay_awake call, there must be a
__pm_relax call to ensure there is no stale
wakelock is held. with the current logic
__pm_stay_awake is called whenever wakelock ref
cnt is non-zero and released only when it is 0.
This leads to wakelock being held even when
it is not required. Make a change to acquire
wakelock only when it is not held previously.
Change-Id: I8c61c184506c705fd5866de8a606f642c5de3d5b
Acked-by: Chaitanya Pratapa <cpratapa@qti.qualcomm.com>
Signed-off-by: Utkarsh Saxena <usaxena@codeaurora.org>
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions
