| /* reboot.c: reboot/shutdown/halt/poweroff handling |
| * Copyright (C) 2008 David S. Miller <davem@davemloft.net> |
| #include <linux/kernel.h> |
| #include <linux/reboot.h> |
| #include <linux/export.h> |
| /* sysctl - toggle power-off restriction for serial console |
| * systems in machine_power_off() |
| /* This isn't actually used, it exists merely to satisfy the |
| * reference in kernel/sys.c |
| void (*pm_power_off)(void) = machine_power_off; |
| EXPORT_SYMBOL(pm_power_off); |
| void machine_power_off(void) |
| if (strcmp(of_console_device->type, "serial") || scons_pwroff) |
| void machine_restart(char *cmd) |
| p = strchr(reboot_command, '\n'); |
| prom_reboot(reboot_command); |