PM: Warn if interrupts are enabled during suspend-resume of sysdevs
authorRafael J. Wysocki <rjw@sisk.pl>
Sat, 18 Apr 2009 11:45:13 +0000 (13:45 +0200)
committerRafael J. Wysocki <rjw@sisk.pl>
Fri, 12 Jun 2009 19:32:29 +0000 (21:32 +0200)
commit62b0124761b9c2e304ee07dcf4db46c4a3dfec11
tree81f27bb0e7eb92cd2d14a3ae3088ef3fa90a3cc2
parentce4b3c55475e451cb489e857640396c37ca88974
PM: Warn if interrupts are enabled during suspend-resume of sysdevs

Sysdevs have to be suspended and resumed with interrupts disabled and
things usually break in a way that's difficult to debug if one of
sysdev drivers enables interrupts by mistake during suspend or
resume.  Add extra checks that will generate warnings in such cases.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
drivers/base/sys.c