msm: subsystem_restart: Prevent suspend from occuring during a restart
If a subsystem encounters a fatal error and communicates
this error to the applications processor just as the
application processor is about to enter a sleep mode
(in a suspend cycle), that subsystem may not be restarted
until the system resumes. To prevent this, take a
wakelock as soon as subsystem restart is requested.
For this to work, every client of subsystem restart
must ensure that they call into subsystem restart
from within the context of the interrupt that indicates
a fatal error in that subsystem.
Change-Id: I2e4ab2bc6ca45d3a7abbc8321de32ccd66ab0996
Signed-off-by:
Vikram Mulukutla <markivx@codeaurora.org>
Loading
Please sign in to comment