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)
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

Simple merge