summaryrefslogtreecommitdiff
path: root/rust/helpers/platform.c
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2025-08-13 12:38:58 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2025-09-02 16:08:53 +0200
commite4c628e91c6ab12f89500a023adfb030f737f3fd (patch)
treefbf1d3b9ea7f94056b8f4c0da61a03a96c075b7f /rust/helpers/platform.c
parenteb58738d1546bababc77392968ece9c595b4f737 (diff)
ACPI: processor: idle: Eliminate static variable flat_state_cnt
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> Reviewed-by: Sudeep Holla <sudeep.holla@arm.com> Tested-by: Sudeep Holla <sudeep.holla@arm.com> Acked-by: lihuisong@huawei.com Link: https://patch.msgid.link/10715991.nUPlyArG6x@rafael.j.wysocki
Diffstat (limited to 'rust/helpers/platform.c')
0 files changed, 0 insertions, 0 deletions