PM: Add watchdog to catch lockup during device resume
authorBenoit Goby <benoit@android.com>
Tue, 15 Feb 2011 05:32:43 +0000 (21:32 -0800)
committerArve Hjønnevåg <arve@android.com>
Mon, 1 Jul 2013 20:40:55 +0000 (13:40 -0700)
commit6893020d33ee9de7fc6e56c44e281ce1dc1a64c1
treedc312e4c3237f1768275cb58759d4eb1efea3647
parente8273fe135acb67bcef40d4448aefff005d6ba5b
PM: Add watchdog to catch lockup during device resume

Refactor the dpm suspend watchdog code and add watchdogs
on resume too. The dpm wachdog prints the stack trace and
reboots the system if a device takes more than 12 seconds
to suspend or resume.

Change-Id: If00c047a17b80bdc13a8426393c698bc450a7347
Signed-off-by: Benoit Goby <benoit@android.com>
drivers/base/power/main.c