linux/drivers/base/power
Ulf Hansson f96b3c4f34 PM / Domains: Remove in_progress counter from struct generic_pm_domain
Commit ba2bbfbf63 ("PM / Domains: Remove intermediate states..") changed
the power off sequence (pm_genpd_poweroff()), which from locking point of
view means the genpd mutex is held throughout the sequence.

The above change means the in_progress counter can't be updated while
pm_genpd_poweroff() is executing, which allows us to remove the counter.

Instead we inform pm_genpd_poweroff() via a bool parameter, to indicate
whether we call it from the scheduled work or from the ->runtime_suspend()
callback, since that all that matters.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Reviewed-by: Lina Iyer <lina.iyer@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2015-10-12 23:19:55 +02:00
..
clock_ops.c PM / clk: don't return int on __pm_clk_enable() 2015-07-17 22:58:13 +02:00
common.c PM: Convert dev_pm_put_subsys_data() into a void function 2015-02-03 22:59:25 +01:00
domain_governor.c PM: Drop CONFIG_PM_RUNTIME from the driver core 2014-12-04 00:46:58 +01:00
domain.c PM / Domains: Remove in_progress counter from struct generic_pm_domain 2015-10-12 23:19:55 +02:00
generic_ops.c PM / Runtime: Spelling s/competing/completing/ 2014-03-26 16:33:53 +01:00
main.c PM / sleep: Allow devices without runtime PM to do direct-complete 2015-07-21 23:14:22 +02:00
Makefile PM / Wakeirq: Add automated device wake IRQ handling 2015-05-20 01:56:31 +02:00
opp.c Merge branch 'pm-opp' 2015-09-11 15:37:17 +02:00
power.h PM / QoS: Make it possible to expose device latency tolerance to userspace 2015-07-28 08:50:41 +01:00
qos.c PM / QoS: Make it possible to expose device latency tolerance to userspace 2015-07-28 08:50:41 +01:00
runtime.c PM / Wakeirq: Add automated device wake IRQ handling 2015-05-20 01:56:31 +02:00
sysfs.c PM / QoS: Make it possible to expose device latency tolerance to userspace 2015-07-28 08:50:41 +01:00
trace.c PM / sleep: add pm-trace support for suspending phase 2015-03-18 15:54:27 +01:00
wakeirq.c PM / wakeirq: Avoid setting power.wakeirq too hastily 2015-07-07 13:08:39 +02:00
wakeup.c Merge branch 'pm-wakeirq' 2015-07-07 22:47:43 +02:00