aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/linux/reboot.h2
-rw-r--r--kernel/sys.c2
2 files changed, 1 insertions, 3 deletions
diff --git a/include/linux/reboot.h b/include/linux/reboot.h
index 85ea63f462af..b93b541cf111 100644
--- a/include/linux/reboot.h
+++ b/include/linux/reboot.h
@@ -59,8 +59,6 @@ extern void machine_crash_shutdown(struct pt_regs *);
59 * Architecture independent implemenations of sys_reboot commands. 59 * Architecture independent implemenations of sys_reboot commands.
60 */ 60 */
61 61
62extern void kernel_shutdown_prepare(enum system_states state);
63
64extern void kernel_restart(char *cmd); 62extern void kernel_restart(char *cmd);
65extern void kernel_halt(void); 63extern void kernel_halt(void);
66extern void kernel_power_off(void); 64extern void kernel_power_off(void);
diff --git a/kernel/sys.c b/kernel/sys.c
index 4162d12390b6..53de35fc8245 100644
--- a/kernel/sys.c
+++ b/kernel/sys.c
@@ -315,7 +315,7 @@ static void kernel_kexec(void)
315#endif 315#endif
316} 316}
317 317
318void kernel_shutdown_prepare(enum system_states state) 318static void kernel_shutdown_prepare(enum system_states state)
319{ 319{
320 blocking_notifier_call_chain(&reboot_notifier_list, 320 blocking_notifier_call_chain(&reboot_notifier_list,
321 (state == SYSTEM_HALT)?SYS_HALT:SYS_POWER_OFF, NULL); 321 (state == SYSTEM_HALT)?SYS_HALT:SYS_POWER_OFF, NULL);