]> git.hungrycats.org Git - linux/commit
[power] Improve suspend sequence.
authorPatrick Mochel <mochel@osdl.org>
Mon, 18 Aug 2003 09:40:36 +0000 (02:40 -0700)
committerPatrick Mochel <mochel@osdl.org>
Mon, 18 Aug 2003 09:40:36 +0000 (02:40 -0700)
commite533deb559deeb04ca83c2612154682aa22ebbe9
tree054c793bc332fd6533d7c7646f32c624be893b4c
parent47d696a99c502d7f75d3cf77ec1feb21ffc0ac9f
[power] Improve suspend sequence.

- Expand pm_power_down() into struct pm_ops, with ->prepare(), ->enter()
  and ->finish() methods, so the platform drivers get called to do start
  and stop work during suspend sequence.

- Make sure devices are suspended/resumed in enter_state(), and that they
  are powered down in pm_suspend_mem() and pm_suspend_standby().

- Call ->prepare() in suspend_prepare() and ->finish() in suspend_finish().
include/linux/pm.h
kernel/power/main.c