Rafael J. Wysocki 4add3e72f0 PM: sleep: stats: Call dpm_save_failed_step() at most once per phase
If the handling of two or more devices fails in one suspend-resume
phase, it should be counted once in the statistics which is not
guaranteed to happen during system-wide resume of devices due to
the possible asynchronous execution of device callbacks.

Address this by using the async_error static variable during system-wide
device resume to indicate that there has been a device resume error and
the given suspend-resume phase should be counted as failing.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Stanislaw Gruszka <stanislaw.gruszka@linux.intel.com>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
2024-02-05 14:28:54 +01:00
..
2024-01-09 14:39:48 -08:00
2024-01-18 09:48:40 -08:00
2024-01-18 09:48:40 -08:00
2024-01-18 16:22:43 -08:00
2024-01-18 09:48:40 -08:00
2021-06-15 17:14:36 +02:00
2021-06-15 17:14:36 +02:00