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)
committerDan Willemsen <dwillemsen@nvidia.com>
Thu, 1 Dec 2011 05:38:12 +0000 (21:38 -0800)
commit5289f2b5e494ee01f6a2b914b8075f1eb33e5721
tree9921ab1150324146416350567ce1586413d4a6da
parentd4076ae3b7eff09f9d4c1f4193572e27db59dbd9
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