Commit 8d287e8
committed
ACPI: scan: Simplify acpi_table_events_fn()
Notice that the table field of struct acpi_table_events_work is never
read and its event field is always equal to ACPI_TABLE_EVENT_LOAD, so
both of them are redundant.
Accordingly, drop struct acpi_table_events_work and use struct
work_struct directly instead of it, simplify acpi_scan_table_handler()
and rename it to acpi_scan_table_notify().
Moreover, make acpi_bus_table_handler() check the event code against
ACPI_TABLE_EVENT_LOAD before calling acpi_scan_table_notify(), so it
is not necessary to do that check in the latter.
No intentional functional impact.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>1 parent 5f4ce26 commit 8d287e8
3 files changed
Lines changed: 13 additions & 30 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1206 | 1206 | | |
1207 | 1207 | | |
1208 | 1208 | | |
1209 | | - | |
| 1209 | + | |
| 1210 | + | |
1210 | 1211 | | |
1211 | 1212 | | |
1212 | 1213 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
| 91 | + | |
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2533 | 2533 | | |
2534 | 2534 | | |
2535 | 2535 | | |
2536 | | - | |
2537 | | - | |
2538 | | - | |
2539 | | - | |
2540 | | - | |
2541 | | - | |
2542 | 2536 | | |
2543 | 2537 | | |
2544 | | - | |
2545 | | - | |
2546 | | - | |
2547 | | - | |
2548 | | - | |
2549 | | - | |
2550 | | - | |
2551 | | - | |
2552 | | - | |
| 2538 | + | |
| 2539 | + | |
| 2540 | + | |
2553 | 2541 | | |
2554 | | - | |
| 2542 | + | |
2555 | 2543 | | |
2556 | 2544 | | |
2557 | | - | |
| 2545 | + | |
2558 | 2546 | | |
2559 | | - | |
| 2547 | + | |
2560 | 2548 | | |
2561 | 2549 | | |
2562 | 2550 | | |
2563 | 2551 | | |
2564 | | - | |
| 2552 | + | |
| 2553 | + | |
2565 | 2554 | | |
2566 | 2555 | | |
2567 | | - | |
2568 | | - | |
2569 | | - | |
2570 | | - | |
2571 | | - | |
2572 | | - | |
2573 | | - | |
2574 | | - | |
2575 | | - | |
| 2556 | + | |
| 2557 | + | |
2576 | 2558 | | |
2577 | 2559 | | |
2578 | 2560 | | |
| |||
0 commit comments