From: "lihuisong (C)" <lihuisong@huawei.com>
To: "Rafael J. Wysocki" <rafael@kernel.org>,
Linux ACPI <linux-acpi@vger.kernel.org>
Cc: LKML <linux-kernel@vger.kernel.org>,
Linux PM <linux-pm@vger.kernel.org>,
Sudeep Holla <sudeep.holla@arm.com>,
Artem Bityutskiy <artem.bityutskiy@linux.intel.com>,
<lihuisong@huawei.com>
Subject: Re: [PATCH v1] ACPI: processor: idle: Eliminate static variable flat_state_cnt
Date: Thu, 14 Aug 2025 21:40:21 +0800 [thread overview]
Message-ID: <5bfa7bef-483f-42c4-9517-198d0fa3f343@huawei.com> (raw)
In-Reply-To: <10715991.nUPlyArG6x@rafael.j.wysocki>
在 2025/8/13 18:38, Rafael J. Wysocki 写道:
> From: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
>
> Instead of using static variable flat_state_cnt to pass data between
> functions involved in the _LPI information processing, pass the current
> number of "flattened" idle states to flatten_lpi_states() and make it
> return the updated number of those states. At the same time, use a
> local variable called state_count to store the number of "flattened"
> idle states found so far in acpi_processor_get_lpi_info().
>
> No intentional functional impact.
>
> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
> ---
>
LGTM,
Acked-by: lihuisong@huawei.com
>
>
>
prev parent reply other threads:[~2025-08-14 13:40 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-13 10:38 [PATCH v1] ACPI: processor: idle: Eliminate static variable flat_state_cnt Rafael J. Wysocki
2025-08-13 11:07 ` Sudeep Holla
2025-08-14 13:40 ` lihuisong (C) [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=5bfa7bef-483f-42c4-9517-198d0fa3f343@huawei.com \
--to=lihuisong@huawei.com \
--cc=artem.bityutskiy@linux.intel.com \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=rafael@kernel.org \
--cc=sudeep.holla@arm.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox