Skip to content

Commit 228710e

Browse files
Zijun Hurafaeljw
authored andcommitted
PM: wakeup: Add missing wakeup source attribute relax_count
There is wakeup source attribute 'active_count', but its counterpart attribute 'relax_count' is missing. Add 'relax_count' for consistency. Signed-off-by: Zijun Hu <quic_zijuhu@quicinc.com> Link: https://patch.msgid.link/20250505-add_power_attrs-v1-1-10bc3c73c320@quicinc.com [ rjw: Changelog edits ] Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 9cd9d3f commit 228710e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/base/power/wakeup_stats.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ wakeup_attr(active_count);
3434
wakeup_attr(event_count);
3535
wakeup_attr(wakeup_count);
3636
wakeup_attr(expire_count);
37+
wakeup_attr(relax_count);
3738

3839
static ssize_t active_time_ms_show(struct device *dev,
3940
struct device_attribute *attr, char *buf)
@@ -119,6 +120,7 @@ static struct attribute *wakeup_source_attrs[] = {
119120
&dev_attr_event_count.attr,
120121
&dev_attr_wakeup_count.attr,
121122
&dev_attr_expire_count.attr,
123+
&dev_attr_relax_count.attr,
122124
&dev_attr_active_time_ms.attr,
123125
&dev_attr_total_time_ms.attr,
124126
&dev_attr_max_time_ms.attr,

0 commit comments

Comments
 (0)