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>
Thu, 30 Sep 2010 00:49:24 +0000 (17:49 -0700)
commit4b66188a3351b2fdf9dc19fb431ea9349ee8d1a9
tree3a440eb49193d1697b4c16ab19459e2bda83f450
parent3b02c046c3dfef5b5c4fa0c45b69654c107c7403
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