0001
0002
0003
0004
0005
0006 #include <linux/kernel.h>
0007 #include <linux/printk.h>
0008 #include <linux/reboot.h>
0009 #include <linux/pm.h>
0010
0011 void machine_halt(void)
0012 {
0013
0014 __asm__ __volatile__("flag 1\n");
0015 }
0016
0017 void machine_restart(char *__unused)
0018 {
0019
0020 pr_info("Put your restart handler here\n");
0021 machine_halt();
0022 }
0023
0024 void machine_power_off(void)
0025 {
0026
0027 machine_halt();
0028 }
0029
0030 void (*pm_power_off) (void) = NULL;
0031 EXPORT_SYMBOL(pm_power_off);