From: zhuguangqing Date: Mon, 9 Dec 2019 09:35:23 +0000 (+0800) Subject: PM: wakeup: Show statistics for deleted wakeup sources again X-Git-Tag: v5.6-rc1~192^2~2^3^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e976eb4b91e906f20ec25b20c152d53c472fc3fd;p=thirdparty%2Fkernel%2Flinux.git PM: wakeup: Show statistics for deleted wakeup sources again After commit 00ee22c28915 (PM / wakeup: Use seq_open() to show wakeup stats), print_wakeup_source_stats(m, &deleted_ws) is not called from wakeup_sources_stats_seq_show() any more. Because deleted_ws is one of the wakeup sources, it should be shown too, so add it to the end of all other wakeup sources. Signed-off-by: zhuguangqing [ rjw: Subject & changelog ] Signed-off-by: Rafael J. Wysocki --- diff --git a/drivers/base/power/wakeup.c b/drivers/base/power/wakeup.c index 70a9edb5f5252..27f3e60608e59 100644 --- a/drivers/base/power/wakeup.c +++ b/drivers/base/power/wakeup.c @@ -1125,6 +1125,9 @@ static void *wakeup_sources_stats_seq_next(struct seq_file *m, break; } + if (!next_ws) + print_wakeup_source_stats(m, &deleted_ws); + return next_ws; }