Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

authored by

Ulf Hansson and committed by
Rafael J. Wysocki
164a2159 624c8df7

-6
-6
drivers/base/power/domain.c
··· 730 730 * at this point and a system wakeup event should be reported if it's 731 731 * set up to wake up the system from sleep states. 732 732 */ 733 - if (pm_runtime_barrier(dev) && device_may_wakeup(dev)) 734 - pm_wakeup_event(dev, 0); 735 - 736 - if (pm_wakeup_pending()) 737 - return -EBUSY; 738 - 739 733 if (resume_needed(dev, genpd)) 740 734 pm_runtime_resume(dev); 741 735