drivers/base/power/wakeup_stats.c | 2 ++ 1 file changed, 2 insertions(+)
From: Zijun Hu <quic_zijuhu@quicinc.com>
There is wakeup source attribute 'active_count', but its counterpart
attribute 'relax_count' is missing.
Add missing 'relax_count' for integrality.
Signed-off-by: Zijun Hu <quic_zijuhu@quicinc.com>
---
drivers/base/power/wakeup_stats.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/base/power/wakeup_stats.c b/drivers/base/power/wakeup_stats.c
index 6732ed2869f9f38a272faab0044b6eb3edc051f2..3ffd427248e8eebae3c05b5165bd4200a0668339 100644
--- a/drivers/base/power/wakeup_stats.c
+++ b/drivers/base/power/wakeup_stats.c
@@ -34,6 +34,7 @@ wakeup_attr(active_count);
wakeup_attr(event_count);
wakeup_attr(wakeup_count);
wakeup_attr(expire_count);
+wakeup_attr(relax_count);
static ssize_t active_time_ms_show(struct device *dev,
struct device_attribute *attr, char *buf)
@@ -119,6 +120,7 @@ static struct attribute *wakeup_source_attrs[] = {
&dev_attr_event_count.attr,
&dev_attr_wakeup_count.attr,
&dev_attr_expire_count.attr,
+ &dev_attr_relax_count.attr,
&dev_attr_active_time_ms.attr,
&dev_attr_total_time_ms.attr,
&dev_attr_max_time_ms.attr,
---
base-commit: 393d0c54cae31317deaa9043320c5fd9454deabc
change-id: 20250505-add_power_attrs-fb7cf6bd4ce2
Best regards,
--
Zijun Hu <quic_zijuhu@quicinc.com>
On Mon, May 5, 2025 at 12:17 PM Zijun Hu <zijun_hu@icloud.com> wrote:
>
> From: Zijun Hu <quic_zijuhu@quicinc.com>
>
> There is wakeup source attribute 'active_count', but its counterpart
> attribute 'relax_count' is missing.
>
> Add missing 'relax_count' for integrality.
>
> Signed-off-by: Zijun Hu <quic_zijuhu@quicinc.com>
> ---
> drivers/base/power/wakeup_stats.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/drivers/base/power/wakeup_stats.c b/drivers/base/power/wakeup_stats.c
> index 6732ed2869f9f38a272faab0044b6eb3edc051f2..3ffd427248e8eebae3c05b5165bd4200a0668339 100644
> --- a/drivers/base/power/wakeup_stats.c
> +++ b/drivers/base/power/wakeup_stats.c
> @@ -34,6 +34,7 @@ wakeup_attr(active_count);
> wakeup_attr(event_count);
> wakeup_attr(wakeup_count);
> wakeup_attr(expire_count);
> +wakeup_attr(relax_count);
>
> static ssize_t active_time_ms_show(struct device *dev,
> struct device_attribute *attr, char *buf)
> @@ -119,6 +120,7 @@ static struct attribute *wakeup_source_attrs[] = {
> &dev_attr_event_count.attr,
> &dev_attr_wakeup_count.attr,
> &dev_attr_expire_count.attr,
> + &dev_attr_relax_count.attr,
> &dev_attr_active_time_ms.attr,
> &dev_attr_total_time_ms.attr,
> &dev_attr_max_time_ms.attr,
>
> ---
Applied as 6.16 material, thanks!
© 2016 - 2026 Red Hat, Inc.