drivers: power: Add watchdog timer to catch drivers which lockup during suspend.
authorSan Mehat <san@google.com>
Thu, 13 Aug 2009 16:40:42 +0000 (09:40 -0700)
committerColin Cross <ccross@android.com>
Tue, 14 Jun 2011 16:09:17 +0000 (09:09 -0700)
commit9272a144e54b2fb53fea8552b4f797b069a6f425
treecf6fc82b2d20ebcf38899cfd8691661be335afef
parentf86e4b09b7297ac880b88bb19e23661dfeeb47f7
drivers: power: Add watchdog timer to catch drivers which lockup during suspend.

Rather than hard-lock the kernel, we now BUG() when a driver takes
> 3 seconds to suspend. If the underlying platform supports panic dumps,
then the data can be collected for debug.

Signed-off-by: San Mehat <san@google.com>
drivers/base/power/main.c