Commit 4d613fb
ACPI: processor: idle: Remove redundant static variable and rename cstate check function
The function acpi_processor_cstate_first_run_checks() is currently called
only once during initialization in acpi_processor_register_idle_driver().
Since its execution is already limited by the caller's lifecycle, the
internal static 'first_run' variable is redundant and can be safely
removed.
Additionally, the current function name is no longer descriptive of its
behavior, so rename the function to acpi_processor_update_max_cstate()
to better reflect its actual purpose.
Signed-off-by: Huisong Li <lihuisong@huawei.com>
Link: https://patch.msgid.link/20260311065038.4151558-4-lihuisong@huawei.com
[ rjw: Changelog edits ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>1 parent 1f23194 commit 4d613fb
1 file changed
Lines changed: 3 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
819 | 819 | | |
820 | 820 | | |
821 | 821 | | |
822 | | - | |
| 822 | + | |
823 | 823 | | |
824 | | - | |
825 | | - | |
826 | | - | |
827 | | - | |
828 | 824 | | |
829 | 825 | | |
830 | 826 | | |
831 | 827 | | |
832 | 828 | | |
833 | | - | |
834 | | - | |
835 | 829 | | |
836 | 830 | | |
837 | 831 | | |
| |||
840 | 834 | | |
841 | 835 | | |
842 | 836 | | |
843 | | - | |
| 837 | + | |
844 | 838 | | |
845 | 839 | | |
846 | 840 | | |
| |||
1359 | 1353 | | |
1360 | 1354 | | |
1361 | 1355 | | |
1362 | | - | |
| 1356 | + | |
1363 | 1357 | | |
1364 | 1358 | | |
1365 | 1359 | | |
| |||
0 commit comments