LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] power: Print wakeup_count instead of event_count in the sysfs attribute.
@ 2018-06-02  2:32 Ravi Chandra Sadineni
  2018-06-02 19:02 ` Pavel Machek
  2018-06-03  8:05 ` Rafael J. Wysocki
  0 siblings, 2 replies; 6+ messages in thread
From: Ravi Chandra Sadineni @ 2018-06-02  2:32 UTC (permalink / raw)
  To: rjw, chenhong3, ravisadineni, pavel, ravisadineni, dtor,
	len.brown, gregkh
  Cc: tbroch, linux-kernel, linux-pm, rajatja, bleung

Currently we show event_count instead of wakeup_count as part of per
device wakeup_count sysfs attribute. Change it to wakeup_count to make
it more meaningful.

Signed-off-by: Ravi Chandra Sadineni <ravisadineni@chromium.org>
---
 drivers/base/power/sysfs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/base/power/sysfs.c b/drivers/base/power/sysfs.c
index 0f651efc58a1a..d713738ce7967 100644
--- a/drivers/base/power/sysfs.c
+++ b/drivers/base/power/sysfs.c
@@ -353,7 +353,7 @@ static ssize_t wakeup_count_show(struct device *dev,
 
 	spin_lock_irq(&dev->power.lock);
 	if (dev->power.wakeup) {
-		count = dev->power.wakeup->event_count;
+		count = dev->power.wakeup->wakeup_count;
 		enabled = true;
 	}
 	spin_unlock_irq(&dev->power.lock);
-- 
2.17.1.1185.g55be947832-goog

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-06-08  9:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-02  2:32 [PATCH] power: Print wakeup_count instead of event_count in the sysfs attribute Ravi Chandra Sadineni
2018-06-02 19:02 ` Pavel Machek
2018-06-03  8:05 ` Rafael J. Wysocki
2018-06-03 17:14   ` Ravi Chandra Sadineni
2018-06-07 16:47     ` Ravi Chandra Sadineni
2018-06-08  9:16       ` Rafael J. Wysocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).