Commit 77ca161
ACPI: processor: idle: Drop redundant C-state count checks
acpi_processor_setup_cstates() and acpi_processor_setup_cpuidle_cx()
are called after successfully obtaining power information. Among other
things, these setup functions check the C-state count against zero.
However, that check is done by acpi_processor_get_power_info_cst()
which will cause acpi_processor_get_power_info() to fail if it does
no pass, so the checks in the two functions mentioned above are
redundant.
Drop those redundant checks.
No intentional functional impact.
Signed-off-by: Huisong Li <lihuisong@huawei.com>
[ rjw: Subject and changelog rewrite ]
Link: https://patch.msgid.link/20251105093647.3557248-1-lihuisong@huawei.com
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>1 parent 945661d commit 77ca161
1 file changed
Lines changed: 7 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
732 | 732 | | |
733 | 733 | | |
734 | 734 | | |
735 | | - | |
736 | | - | |
| 735 | + | |
| 736 | + | |
737 | 737 | | |
738 | 738 | | |
739 | 739 | | |
| |||
753 | 753 | | |
754 | 754 | | |
755 | 755 | | |
756 | | - | |
757 | | - | |
758 | | - | |
759 | | - | |
760 | | - | |
761 | 756 | | |
762 | 757 | | |
763 | | - | |
| 758 | + | |
764 | 759 | | |
765 | 760 | | |
766 | 761 | | |
| |||
822 | 817 | | |
823 | 818 | | |
824 | 819 | | |
825 | | - | |
826 | | - | |
827 | | - | |
828 | | - | |
829 | | - | |
830 | 820 | | |
831 | 821 | | |
832 | 822 | | |
| |||
1241 | 1231 | | |
1242 | 1232 | | |
1243 | 1233 | | |
1244 | | - | |
| 1234 | + | |
| 1235 | + | |
1245 | 1236 | | |
1246 | 1237 | | |
1247 | 1238 | | |
| |||
1261 | 1252 | | |
1262 | 1253 | | |
1263 | 1254 | | |
1264 | | - | |
| 1255 | + | |
| 1256 | + | |
1265 | 1257 | | |
1266 | 1258 | | |
1267 | 1259 | | |
| |||
0 commit comments