mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 14:42:24 +00:00
3487972d7f
Middle-layer code doing suspend-time optimizations for devices with the DPM_FLAG_SMART_SUSPEND flag set (currently, the PCI bus type and the ACPI PM domain) needs to make the core skip ->thaw_early and ->thaw callbacks for those devices in some cases and it sets the power.direct_complete flag for them for this purpose. However, it turns out that setting power.direct_complete outside of the PM core is a bad idea as it triggers an excess invocation of pm_runtime_enable() in device_resume(). For this reason, provide a helper to clear power.is_late_suspended and power.is_suspended to be invoked by the middle-layer code in question instead of setting power.direct_complete and make that code call the new helper. Fixes: |
||
---|---|---|
.. | ||
clock_ops.c | ||
common.c | ||
domain_governor.c | ||
domain.c | ||
generic_ops.c | ||
main.c | ||
Makefile | ||
power.h | ||
qos.c | ||
runtime.c | ||
sysfs.c | ||
trace.c | ||
wakeirq.c | ||
wakeup.c |