mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-21 06:01:23 +00:00
[PATCH] Refactor sys_reboot into reusable parts
Because the factors of sys_reboot don't exist people calling into the reboot path duplicate the code badly, leading to inconsistent expectations of code in the reboot path. This patch should is just code motion. Signed-off-by: Eric W. Biederman <ebiederm@xmission.com> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
47f61f397c
commit
4a00ea1e18
2 changed files with 73 additions and 42 deletions
|
@ -55,6 +55,15 @@ extern void machine_shutdown(void);
|
|||
struct pt_regs;
|
||||
extern void machine_crash_shutdown(struct pt_regs *);
|
||||
|
||||
/*
|
||||
* Architecture independent implemenations of sys_reboot commands.
|
||||
*/
|
||||
|
||||
extern void kernel_restart(char *cmd);
|
||||
extern void kernel_halt(void);
|
||||
extern void kernel_power_off(void);
|
||||
extern void kernel_kexec(void);
|
||||
|
||||
#endif
|
||||
|
||||
#endif /* _LINUX_REBOOT_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue