History

kernel/reboot: Add do_kernel_power_off()

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.

Dmitry Osipenko committed 4 years ago

Commit 2b6aa731 parent 7b9a3de2 files · +15 −0Browse files

Showing the changes to include (1 of 2 files). Show all

Unified · Split

include/linux/reboot.h+2−0
@@ -63,6 +63,8 @@ extern void machine_shutdown(void); · 62 unmodified lines
6363 struct pt_regs;
6464 extern void machine_crash_shutdown(struct pt_regs *);
6565
66+void do_kernel_power_off(void);
67+
6668 /*
6769 * sys-off handler API.
6870 */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t