]> git.baikalelectronics.ru Git - kernel.git/commit
PM / Domains: Power off masters immediately in the power off sequence
authorUlf Hansson <ulf.hansson@linaro.org>
Fri, 17 Feb 2017 09:55:25 +0000 (10:55 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 23 Feb 2017 21:25:46 +0000 (22:25 +0100)
commitfdedeba37256779086b289f31f8c08fcae938b9f
treeed9bc9cad8e875f3ffb7aba39a6510b7a09868b9
parent7272f122b7d2e7bcd6ed71bc4de39763a5f4a3ec
PM / Domains: Power off masters immediately in the power off sequence

Once a subdomain is powered off, genpd queues a power off work for each of
the subdomain's corresponding masters, thus postponing the masters to be
powered off to a later point.

When genpd used intermediate power off states, which was removed in
commit d2af4edb0832 ("PM / Domains: Remove intermediate states from the
power off sequence"), this behaviour made sense, but now it simply doesn't.

Genpd can easily try to power off the masters in the same context as the
subdomain, of course by acquiring/releasing the lock. Then, let's convert
to this behaviour, as it avoids unnecessary works from being queued.

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