PM / wakeup: Use seq_open() to show wakeup stats
authorMahendran Ganesh <opensource.ganesh@gmail.com>
Wed, 25 Apr 2018 10:59:31 +0000 (18:59 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 10 May 2018 09:36:46 +0000 (11:36 +0200)
commit00ee22c28915d111ba415750a3311d7678fd1206
tree97f54410d8c5ffe5709d6a8a34dea7d381d70314
parent7f817ba942940df382de085f9b830f77411562f2
PM / wakeup: Use seq_open() to show wakeup stats

single_open() interface requires that the whole output must
fit into a single buffer. This will lead to timeout when
system memory is not in a good situation.

This patch use seq_open() to show wakeup stats. This method
need only one page, so timeout will not be observed.

Signed-off-by: Ganesh Mahendran <opensource.ganesh@gmail.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/wakeup.c