Commit 3d339dc
cpuidle / ACPI : move cpuidle_device field out of the acpi_processor_power structure
Currently we have the cpuidle_device field in the acpi_processor_power structure.
This adds a dependency between processor.h and cpuidle.h
Although it is not a real problem, removing this dependency has the benefit of
separating a bit more the cpuidle code from the rest of the acpi code.
Also, the compilation should be a bit improved because we do no longer
include cpuidle.h in processor.h. The preprocessor was generating 30418 loc
and with this patch it generates 30256 loc for processor_thermal.c, a file
which is not concerned at all by cpuidle, like processor_perflib.c and
processor_throttling.c.
That may sound ridiculous, but "small streams make big rivers" :P
This patch moves this field into a static global per cpu variable like what is
done in the intel_idle driver.
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>1 parent ed1511b commit 3d339dc
2 files changed
+24
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
| 83 | + | |
82 | 84 | | |
83 | 85 | | |
84 | 86 | | |
| |||
998 | 1000 | | |
999 | 1001 | | |
1000 | 1002 | | |
1001 | | - | |
| 1003 | + | |
1002 | 1004 | | |
1003 | 1005 | | |
1004 | 1006 | | |
| |||
1130 | 1132 | | |
1131 | 1133 | | |
1132 | 1134 | | |
| 1135 | + | |
1133 | 1136 | | |
1134 | 1137 | | |
1135 | 1138 | | |
| |||
1145 | 1148 | | |
1146 | 1149 | | |
1147 | 1150 | | |
1148 | | - | |
| 1151 | + | |
1149 | 1152 | | |
1150 | 1153 | | |
1151 | 1154 | | |
1152 | | - | |
| 1155 | + | |
1153 | 1156 | | |
1154 | 1157 | | |
1155 | 1158 | | |
| |||
1160 | 1163 | | |
1161 | 1164 | | |
1162 | 1165 | | |
| 1166 | + | |
1163 | 1167 | | |
1164 | 1168 | | |
1165 | 1169 | | |
| |||
1190 | 1194 | | |
1191 | 1195 | | |
1192 | 1196 | | |
1193 | | - | |
| 1197 | + | |
| 1198 | + | |
1194 | 1199 | | |
1195 | 1200 | | |
1196 | 1201 | | |
| |||
1204 | 1209 | | |
1205 | 1210 | | |
1206 | 1211 | | |
1207 | | - | |
| 1212 | + | |
| 1213 | + | |
1208 | 1214 | | |
1209 | 1215 | | |
1210 | 1216 | | |
| |||
1220 | 1226 | | |
1221 | 1227 | | |
1222 | 1228 | | |
| 1229 | + | |
1223 | 1230 | | |
1224 | 1231 | | |
1225 | 1232 | | |
| |||
1265 | 1272 | | |
1266 | 1273 | | |
1267 | 1274 | | |
| 1275 | + | |
| 1276 | + | |
| 1277 | + | |
| 1278 | + | |
| 1279 | + | |
| 1280 | + | |
| 1281 | + | |
| 1282 | + | |
1268 | 1283 | | |
1269 | 1284 | | |
1270 | 1285 | | |
1271 | | - | |
1272 | | - | |
| 1286 | + | |
1273 | 1287 | | |
1274 | 1288 | | |
1275 | 1289 | | |
| |||
1282 | 1296 | | |
1283 | 1297 | | |
1284 | 1298 | | |
| 1299 | + | |
| 1300 | + | |
1285 | 1301 | | |
1286 | 1302 | | |
1287 | 1303 | | |
1288 | 1304 | | |
1289 | | - | |
| 1305 | + | |
1290 | 1306 | | |
1291 | 1307 | | |
1292 | 1308 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
| |||
64 | 63 | | |
65 | 64 | | |
66 | 65 | | |
67 | | - | |
68 | 66 | | |
69 | 67 | | |
70 | 68 | | |
| |||
0 commit comments