summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzhuguangqing <zhuguangqing@xiaomi.com>2019-12-09 17:35:23 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-07-31 18:39:32 +0200
commit4918285a6c7ddf0e3bbda163314030c3642dd08f (patch)
tree73e3b78767a3e2b5bb1d680c8f1e5da6a7417c60
parent59242fa1d2ba07a0748740aa63c64bfb6841639e (diff)
PM: wakeup: Show statistics for deleted wakeup sources again
commit e976eb4b91e906f20ec25b20c152d53c472fc3fd upstream. 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 <zhuguangqing@xiaomi.com> [ rjw: Subject & changelog ] Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/base/power/wakeup.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/base/power/wakeup.c b/drivers/base/power/wakeup.c
index 0bd9b291bb29..92f0960e9014 100644
--- a/drivers/base/power/wakeup.c
+++ b/drivers/base/power/wakeup.c
@@ -1073,6 +1073,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;
}