]> git.baikalelectronics.ru Git - kernel.git/commit
PM: Change suspend code ordering
authorRafael J. Wysocki <rjw@sisk.pl>
Mon, 16 Mar 2009 21:34:15 +0000 (22:34 +0100)
committerRafael J. Wysocki <rjw@sisk.pl>
Mon, 30 Mar 2009 19:46:54 +0000 (21:46 +0200)
commitfac4071ec1c6dd9e7f3634f9ed55f987a8757e8b
tree4502d4108200fa0eb38dd5f0155b205fed166e48
parentf1ccd83a5343026658b2f5a72a070b790153674b
PM: Change suspend code ordering

Change the ordering of the suspend core code so that the platform
"prepare" callback is executed and the nonboot CPUs are disabled
after calling device drivers' "late suspend" methods.

This change will allow us to rework the PCI PM core so that the power
state of devices is changed in the "late" phase of suspend (and
analogously in the "early" phase of resume), which in turn will allow
us to avoid the race condition where a device using shared interrupts
is put into a low power state with interrupts enabled and then an
interrupt (for another device) comes in and confuses its driver.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Ingo Molnar <mingo@elte.hu>
kernel/power/main.c