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

Skip to content
Commit 3a272092 authored by Umang Agrawal's avatar Umang Agrawal Committed by Guru Das Srinagesh
Browse files

power: smb5-lib: Fix wake lock acquisition



Currently, pm_stay_awake and pm_relax are called directly from the
alarm callback routines since we are in atomic context. However,
pm_stay_awake/pm_relax are not ref counted which leaves a possibility
of the wakelock being cleared by any other thread of this module.

Fix this by explicitly voting to awake votable, to ensure pm_relax
isn't called before the complete execution of the routine.

Change-Id: I3b28315648261eacfa3247d8fcb76673d506629b
Signed-off-by: default avatarUmang Agrawal <uagrawal@codeaurora.org>
parent c8540a06
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