From: Joshua Crofts <crofts@kernel.org>
To: "Rafael J. Wysocki (Intel)" <rafael@kernel.org>
Cc: Len Brown <lenb@kernel.org>, Pavel Machek <pavel@kernel.org>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Danilo Krummrich <dakr@kernel.org>,
Johan Hovold <johan@kernel.org>, Samuel Wu <wusamuel@google.com>,
linux-pm@vger.kernel.org, driver-core@lists.linux.dev,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3 2/2] PM: runtime: add debugfs entry for pm_runtime_summary
Date: Wed, 25 Nov 2026 15:29:23 +0100 [thread overview]
Message-ID: <2c578ef0-b241-46ff-bc92-158fac966f0a@kernel.org> (raw)
In-Reply-To: <CAJZ5v0iJ2ytkT2-JJTONCvYx3s-kOOtxopFkdbtGzHNQWOwJgg@mail.gmail.com>
On 25-Nov-26 14:01, Rafael J. Wysocki (Intel) wrote:
> On Mon, Nov 23, 2026 at 10:07 AM Joshua Crofts <crofts@kernel.org> wrote:
>>
>> Add a debugfs entry for showing the runtime statistics for devices with
>> PM runtime enabled.
>>
>> Signed-off-by: Joshua Crofts <crofts@kernel.org>
>> ---
>> drivers/base/power/runtime.c | 86 ++++++++++++++++++++++++++++++++++++++++++++
>> 1 file changed, 86 insertions(+)
>>
>> diff --git a/drivers/base/power/runtime.c b/drivers/base/power/runtime.c
>> index 17aee68366cf..cf657251633e 100644
>> --- a/drivers/base/power/runtime.c
>> +++ b/drivers/base/power/runtime.c
>> @@ -14,6 +14,8 @@
>> #include <linux/pm_runtime.h>
>> #include <linux/pm_wakeirq.h>
>> #include <linux/rculist.h>
>> +#include <linux/debugfs.h>
>> +#include <linux/seq_file.h>
>> #include <trace/events/rpm.h>
>>
>> #include "../base.h"
>> @@ -2223,3 +2225,87 @@ bool pm_runtime_need_not_resume(struct device *dev)
>> }
>>
>> #endif /* CONFIG_PM_SLEEP */
>> +
>> +#if defined(CONFIG_DEBUG_FS) && defined(CONFIG_PM_SLEEP)
>
> Why do you want to make it depend on CONFIG_PM_SLEEP?
>
> There's nothing related to system sleep in it AFAICS.
dpm_for_each_dev() is guarded by #ifdef CONFIG_PM_SLEEP.
--
Kind regards,
Joshua Crofts
prev parent reply other threads:[~2026-11-25 14:29 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-23 9:06 [PATCH v3 0/2] PM: runtime: add new runtime metrics and summary Joshua Crofts
2026-11-23 9:06 ` [PATCH v3 1/2] PM: runtime: add additional suspend/resume metrics Joshua Crofts
2026-11-25 12:54 ` Rafael J. Wysocki (Intel)
2026-11-25 12:58 ` Rafael J. Wysocki (Intel)
2026-11-25 14:38 ` Joshua Crofts
2026-11-23 9:06 ` [PATCH v3 2/2] PM: runtime: add debugfs entry for pm_runtime_summary Joshua Crofts
2026-11-25 13:01 ` Rafael J. Wysocki (Intel)
2026-11-25 14:29 ` Joshua Crofts [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2c578ef0-b241-46ff-bc92-158fac966f0a@kernel.org \
--to=crofts@kernel.org \
--cc=dakr@kernel.org \
--cc=driver-core@lists.linux.dev \
--cc=gregkh@linuxfoundation.org \
--cc=johan@kernel.org \
--cc=lenb@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=pavel@kernel.org \
--cc=rafael@kernel.org \
--cc=wusamuel@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.