Commit 13a62d0
committed
ACPI: EC: Rearrange code in acpi_ec_submit_event()
Rearange acpi_ec_event_handler() so as to avoid releasing ec->lock
and acquiring it again right away in the case when ec_event_clearing
is not ACPI_EC_EVT_TIMING_EVENT.
This also reduces the number of checks done by acpi_ec_event_handler()
in that case.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>1 parent 54b8614 commit 13a62d0
1 file changed
Lines changed: 13 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1238 | 1238 | | |
1239 | 1239 | | |
1240 | 1240 | | |
| 1241 | + | |
1241 | 1242 | | |
1242 | 1243 | | |
1243 | 1244 | | |
| |||
1246 | 1247 | | |
1247 | 1248 | | |
1248 | 1249 | | |
1249 | | - | |
| 1250 | + | |
| 1251 | + | |
| 1252 | + | |
1250 | 1253 | | |
1251 | | - | |
1252 | | - | |
1253 | 1254 | | |
1254 | | - | |
| 1255 | + | |
| 1256 | + | |
| 1257 | + | |
1255 | 1258 | | |
1256 | | - | |
| 1259 | + | |
1257 | 1260 | | |
1258 | | - | |
1259 | 1261 | | |
1260 | 1262 | | |
1261 | 1263 | | |
1262 | | - | |
| 1264 | + | |
1263 | 1265 | | |
| 1266 | + | |
| 1267 | + | |
1264 | 1268 | | |
1265 | | - | |
| 1269 | + | |
1266 | 1270 | | |
1267 | 1271 | | |
1268 | | - | |
1269 | 1272 | | |
| 1273 | + | |
1270 | 1274 | | |
1271 | 1275 | | |
1272 | 1276 | | |
| |||
0 commit comments