OSDN Git Service

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)
committerIliyan Malchev <malchev@google.com>
Mon, 23 May 2011 22:43:31 +0000 (15:43 -0700)
commit9e4f50f09be90eae64839df34b24f693a37892b3
tree21f0f3d5a3b26568c9d2f294c44bb03f41954012
parent8c832c90bff78291fc4433ce29b54f51575e2525
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