/*1* Copyright (C) 2009 Michal Simek <[email protected]>2* Copyright (C) 2009 PetaLogix3*4* This file is subject to the terms and conditions of the GNU General Public5* License. See the file "COPYING" in the main directory of this archive6* for more details.7*/89#include <linux/init.h>10#include <linux/delay.h>11#include <linux/reboot.h>1213void machine_shutdown(void)14{15pr_notice("Machine shutdown...\n");16while (1)17;18}1920void machine_halt(void)21{22pr_notice("Machine halt...\n");23while (1)24;25}2627void machine_power_off(void)28{29pr_notice("Machine power off...\n");30while (1)31;32}3334void machine_restart(char *cmd)35{36do_kernel_restart(cmd);37/* Give the restart hook 1 s to take us down */38mdelay(1000);39pr_emerg("Reboot failed -- System halted\n");40while (1);41}424344