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)
committermgross <mark.gross@intel.com>
Wed, 9 Nov 2011 20:04:43 +0000 (12:04 -0800)
commit7875a4de298c3e799629ae30ff5ecaabd9f3bf7d
treea3f74fceda2d3729fa798a950edaf22e2fd39efd
parent4cd1dac151a86d39ee183b5a010b0fcacf510fd9
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