Commit 57b34bbd authored by Abhijeet Dharmapurikar's avatar Abhijeet Dharmapurikar Committed by Bryan Huntsman
Browse files

power: wakelock: BUG if wakelock is taken very late



There has been handful of corner cases where a driver would call
wake_lock very late in the suspend sequence but the suspend proceeds
anyways and causes issues.

Add code to BUG if a driver grabs a wakelock after suspend_noirq callbacks
are called, this will aid in correct wakelock usage for new drivers and
give us callstacks for misbehaving drivers.

Signed-off-by: default avatarAbhijeet Dharmapurikar <adharmap@codeaurora.org>
parent fdd38924
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment