Skip to content

Commit

Permalink
PM: wakeup: Show statistics for deleted wakeup sources again
Browse files Browse the repository at this point in the history
commit e976eb4 upstream.

After commit 00ee22c (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>
  • Loading branch information
zhuguangqing authored and Greg Kroah-Hartman committed Jul 31, 2020
1 parent 59242fa commit 4918285
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/base/power/wakeup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 4918285

Please sign in to comment.