2 * Copyright (C) 2009 Michal Simek <monstr@monstr.eu>
3 * Copyright (C) 2009 PetaLogix
5 * This file is subject to the terms and conditions of the GNU General Public
6 * License. See the file "COPYING" in the main directory of this archive
10 #include <linux/init.h>
11 #include <linux/delay.h>
12 #include <linux/reboot.h>
14 void machine_shutdown(void)
16 pr_notice("Machine shutdown...\n");
21 void machine_halt(void)
23 pr_notice("Machine halt...\n");
28 void machine_power_off(void)
30 pr_notice("Machine power off...\n");
35 void machine_restart(char *cmd)
37 do_kernel_restart(cmd);
38 /* Give the restart hook 1 s to take us down */
40 pr_emerg("Reboot failed -- System halted\n");