commit | 57b34bbdca587ed67ed3d6fc9a83cf3564ac770d | [log] [tgz] |
---|---|---|
author | Abhijeet Dharmapurikar <adharmap@codeaurora.org> | Mon Sep 26 17:10:02 2011 -0700 |
committer | Bryan Huntsman <bryanh@codeaurora.org> | Tue Oct 04 17:14:23 2011 -0700 |
tree | 99e71a3eb67d616be9d51b588cf3d077f17744a1 | |
parent | fdd3892444be6412bbeead90c13b5099a417e6bb [diff] |
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: Abhijeet Dharmapurikar <adharmap@codeaurora.org>