Commit 4add3e7
committed
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>1 parent 9ff544f commit 4add3e7
1 file changed
Lines changed: 17 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
685 | 685 | | |
686 | 686 | | |
687 | 687 | | |
688 | | - | |
| 688 | + | |
689 | 689 | | |
690 | 690 | | |
691 | 691 | | |
| |||
705 | 705 | | |
706 | 706 | | |
707 | 707 | | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
708 | 711 | | |
709 | 712 | | |
710 | 713 | | |
| |||
734 | 737 | | |
735 | 738 | | |
736 | 739 | | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
737 | 743 | | |
738 | 744 | | |
739 | 745 | | |
| |||
815 | 821 | | |
816 | 822 | | |
817 | 823 | | |
818 | | - | |
| 824 | + | |
819 | 825 | | |
820 | 826 | | |
821 | 827 | | |
| |||
839 | 845 | | |
840 | 846 | | |
841 | 847 | | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
842 | 851 | | |
843 | 852 | | |
844 | 853 | | |
| |||
868 | 877 | | |
869 | 878 | | |
870 | 879 | | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
871 | 883 | | |
872 | 884 | | |
873 | 885 | | |
| |||
971 | 983 | | |
972 | 984 | | |
973 | 985 | | |
974 | | - | |
| 986 | + | |
975 | 987 | | |
976 | 988 | | |
977 | 989 | | |
| |||
1030 | 1042 | | |
1031 | 1043 | | |
1032 | 1044 | | |
| 1045 | + | |
| 1046 | + | |
1033 | 1047 | | |
1034 | 1048 | | |
1035 | 1049 | | |
| |||
0 commit comments