thermal core: add option to run PM_POST_SUSPEND asynchronously
RFC 1/1 thermal core: add option to run PM_POST_SUSPEND asynchronously
Some thermal zones are bus connected and slow to resume, thus delaying actions which depend on completion of PM_POST_SUSPEND. Add optional execution path to resume thermal zones on the system unbounded workqueue.
Signed-off-by Radu Solea <[email protected]>
--- drivers/thermal/Kconfig | 11 +++++++ drivers/thermal/thermal_core.c | 58 ++++++++++++++++++++++++++++++---- 2 files changed, 62 insertions(+), 7 deletions(-)
drivers/thermal/Kconfig +11 -0
@@ -91,6 +91,17 @@ config THERMAL_WRITABLE_TRIPS Say 'Y' here if you would like to allow userspace tools to change trip temperatures. +config THERMAL_ASYNC_RESUME + bool "Thermal async init zones on system resume" + default n + help + Re-initialize thermal zones asynchronously on system resume. + Thermal zone sensors may be attached on slow buses, impacting + the duration of PM_POST_SUSPEND. If that is a concern enable + this switch. + + If in doubt, say N. + choice prompt "Default Thermal governor" default THERMAL_DEFAULT_GOV_STEP_WISE
drivers/thermal/thermal_core.c +51 -7
95 lines not on this page · raw message
Signature · 1 line
2.41.0.487.g6d72f3e995-goog