PM / sleep: Drop pm_request_idle() from pm_generic_complete()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 30 Sep 2015 00:44:29 +0000 (02:44 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 14 Oct 2015 00:17:06 +0000 (02:17 +0200)
commitc2df86ea924a8548f54ce90e46fdd6c9495119b2
treef2e82708b771820f450bf23e2055acc6fcc4318e
parenta5e22db2689dc717cc3aaeb0c92c3f5445c5ea1f
PM / sleep: Drop pm_request_idle() from pm_generic_complete()

The pm_request_idle() in pm_generic_complete() is pointless as it is
called with the runtime PM usage counter different from zero (bumped
up by the core during the prepare phase of system suspend) and the
core calls pm_runtime_put() for all devices after executing their
complete callbacks, so drop it.

This allows the PCI PM layer to use pm_generic_complete() too.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/base/power/generic_ops.c
drivers/pci/pci-driver.c