WSL2-Linux-Kernel/drivers/base/power
Rafael J. Wysocki a5bef810ad PM / Domains: Rework default device stop governor function, v2
The existing default device stop governor function for PM domains,
default_stop_ok(), is supposed to check whether or not the device's
PM QoS latency constraint will be violated if the device is stopped
by pm_genpd_runtime_suspend().  However, the computations carried out
by it don't reflect the definition of the PM QoS latency constrait in
Documentation/ABI/testing/sysfs-devices-power.

Make default_stop_ok() follow the definition of the PM QoS latency
constrait.  In particular, make it take the device's start and stop
latencies correctly.

Add a new field, effective_constraint_ns, to struct gpd_timing_data
and use it to store the difference between the device's PM QoS
constraint and its resume latency for use by the device's parent
(the effective_constraint_ns values for the children are used for
computing the parent's one along with its PM QoS constraint).

Remove the break_even_ns field from struct gpd_timing_data, because
it's not used any more.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
2012-05-01 21:28:03 +02:00
..
Makefile PM / Domains: Add device stop governor function (v4) 2011-12-01 21:47:40 +01:00
clock_ops.c device.h: cleanup users outside of linux/include (C files) 2012-03-11 14:27:37 -04:00
common.c device.h: cleanup users outside of linux/include (C files) 2012-03-11 14:27:37 -04:00
domain.c PM / Domains: Rework default device stop governor function, v2 2012-05-01 21:28:03 +02:00
domain_governor.c PM / Domains: Rework default device stop governor function, v2 2012-05-01 21:28:03 +02:00
generic_ops.c PM / Sleep: Introduce generic callbacks for new device PM phases 2012-01-29 20:38:41 +01:00
main.c PM / Sleep: Introduce "late suspend" and "early resume" of devices 2012-01-29 20:38:29 +01:00
opp.c device.h: cleanup users outside of linux/include (C files) 2012-03-11 14:27:37 -04:00
power.h PM / QoS: Make it possible to expose PM QoS latency constraints 2012-03-13 22:37:14 +01:00
qos.c PM / QoS: Make it possible to expose PM QoS latency constraints 2012-03-13 22:37:14 +01:00
runtime.c PM / Runtime: don't forget to wake up waitqueue on failure 2012-03-26 22:46:52 +02:00
sysfs.c PM / QoS: Make it possible to expose PM QoS latency constraints 2012-03-13 22:37:14 +01:00
trace.c drivers/base: Add export.h for EXPORT_SYMBOL/THIS_MODULE as required. 2011-10-31 19:31:38 -04:00
wakeup.c PM / Sleep: Add more wakeup source initialization routines 2012-03-04 23:08:46 +01:00