Commit e4c628e
committed
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.wysocki1 parent eb58738 commit e4c628e
1 file changed
Lines changed: 11 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
998 | 998 | | |
999 | 999 | | |
1000 | 1000 | | |
1001 | | - | |
1002 | | - | |
1003 | | - | |
1004 | | - | |
1005 | | - | |
1006 | 1001 | | |
1007 | 1002 | | |
1008 | 1003 | | |
| |||
1045 | 1040 | | |
1046 | 1041 | | |
1047 | 1042 | | |
1048 | | - | |
1049 | | - | |
1050 | | - | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
1051 | 1047 | | |
1052 | 1048 | | |
1053 | 1049 | | |
| |||
1087 | 1083 | | |
1088 | 1084 | | |
1089 | 1085 | | |
1090 | | - | |
| 1086 | + | |
1091 | 1087 | | |
1092 | 1088 | | |
1093 | 1089 | | |
| |||
1102 | 1098 | | |
1103 | 1099 | | |
1104 | 1100 | | |
| 1101 | + | |
1105 | 1102 | | |
1106 | 1103 | | |
1107 | 1104 | | |
| |||
1114 | 1111 | | |
1115 | 1112 | | |
1116 | 1113 | | |
1117 | | - | |
1118 | 1114 | | |
1119 | 1115 | | |
1120 | 1116 | | |
1121 | 1117 | | |
1122 | 1118 | | |
1123 | 1119 | | |
1124 | | - | |
| 1120 | + | |
1125 | 1121 | | |
1126 | 1122 | | |
1127 | 1123 | | |
| |||
1143 | 1139 | | |
1144 | 1140 | | |
1145 | 1141 | | |
1146 | | - | |
| 1142 | + | |
1147 | 1143 | | |
1148 | 1144 | | |
1149 | 1145 | | |
1150 | 1146 | | |
1151 | 1147 | | |
1152 | 1148 | | |
1153 | | - | |
1154 | 1149 | | |
1155 | | - | |
| 1150 | + | |
1156 | 1151 | | |
1157 | 1152 | | |
| 1153 | + | |
| 1154 | + | |
1158 | 1155 | | |
1159 | 1156 | | |
1160 | 1157 | | |
| |||
0 commit comments