Add do_kernel_power_off() helper that will remove open-coded pm_power_off invocations from the architecture code. This is the first step on the way to remove the global pm_power_off variable, which will allow us to implement consistent power-off chaining support.
Showing the changes to include (1 of 2 files). Show all
Unified · Split
| @@ -63,6 +63,8 @@ extern void machine_shutdown(void); · 62 unmodified lines | ||
| 63 | 63 | struct pt_regs; |
| 64 | 64 | extern void machine_crash_shutdown(struct pt_regs *); |
| 65 | 65 | |
| 66 | +void do_kernel_power_off(void); | |
| 67 | + | |
| 66 | 68 | /* |
| 67 | 69 | * sys-off handler API. |
| 68 | 70 | */ |