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)
committerVarun Wadekar <vwadekar@nvidia.com>
Mon, 13 Aug 2012 08:43:17 +0000 (13:43 +0530)
commitefa61cc5e66e1348e02fcc93b8e37a6c9c29137a
tree2cb9c9a30a785bba8091c6b8ea7a73fce86a219f
parent90ba7b0d086f0e290a8056d1ebea6876d89d0639
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