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)
commit2da835452a0875866ca55d23126c77b9372f0015
treeed9bc9cad8e875f3ffb7aba39a6510b7a09868b9
parent3c64649d1cf9f32fd16491e69ccc16385e0ef421
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 ba2bbfbf6307 ("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