Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 164a2159 authored by Ulf Hansson's avatar Ulf Hansson Committed by Rafael J. Wysocki
Browse files

PM / Domains: Drop unnecessary wakeup code from pm_genpd_prepare()



As the PM core already have wakeup management during the system PM phase,
it seems reasonable that genpd and its users should be able to rely on
that. Therefore let's remove this from pm_genpd_prepare().

Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 624c8df7
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -730,12 +730,6 @@ static int pm_genpd_prepare(struct device *dev)
	 * at this point and a system wakeup event should be reported if it's
	 * set up to wake up the system from sleep states.
	 */
	if (pm_runtime_barrier(dev) && device_may_wakeup(dev))
		pm_wakeup_event(dev, 0);

	if (pm_wakeup_pending())
		return -EBUSY;

	if (resume_needed(dev, genpd))
		pm_runtime_resume(dev);