diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2005-07-26 13:24:14 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-07-26 17:35:41 -0400 |
commit | 4a00ea1e18228e5ef99d4780671fda97226bda30 (patch) | |
tree | d77c793ef68df78b3c9a73eab16438732f875c3c /include/linux/reboot.h | |
parent | 47f61f397cc08b5a9a815bd03cb10c48dab66034 (diff) |
[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>
Diffstat (limited to 'include/linux/reboot.h')
-rw-r--r-- | include/linux/reboot.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/reboot.h b/include/linux/reboot.h index 2d4dd23168dd..828ba4f107d9 100644 --- a/include/linux/reboot.h +++ b/include/linux/reboot.h | |||
@@ -55,6 +55,15 @@ extern void machine_shutdown(void); | |||
55 | struct pt_regs; | 55 | struct pt_regs; |
56 | extern void machine_crash_shutdown(struct pt_regs *); | 56 | extern void machine_crash_shutdown(struct pt_regs *); |
57 | 57 | ||
58 | /* | ||
59 | * Architecture independent implemenations of sys_reboot commands. | ||
60 | */ | ||
61 | |||
62 | extern void kernel_restart(char *cmd); | ||
63 | extern void kernel_halt(void); | ||
64 | extern void kernel_power_off(void); | ||
65 | extern void kernel_kexec(void); | ||
66 | |||
58 | #endif | 67 | #endif |
59 | 68 | ||
60 | #endif /* _LINUX_REBOOT_H */ | 69 | #endif /* _LINUX_REBOOT_H */ |