diff options
Diffstat (limited to 'arch/sparc64/kernel/process.c')
| -rw-r--r-- | arch/sparc64/kernel/process.c | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/arch/sparc64/kernel/process.c b/arch/sparc64/kernel/process.c index 15f4178592e7..11bb6c4612de 100644 --- a/arch/sparc64/kernel/process.c +++ b/arch/sparc64/kernel/process.c | |||
| @@ -22,7 +22,6 @@ | |||
| 22 | #include <linux/ptrace.h> | 22 | #include <linux/ptrace.h> |
| 23 | #include <linux/slab.h> | 23 | #include <linux/slab.h> |
| 24 | #include <linux/user.h> | 24 | #include <linux/user.h> |
| 25 | #include <linux/reboot.h> | ||
| 26 | #include <linux/delay.h> | 25 | #include <linux/delay.h> |
| 27 | #include <linux/compat.h> | 26 | #include <linux/compat.h> |
| 28 | #include <linux/tick.h> | 27 | #include <linux/tick.h> |
| @@ -31,7 +30,6 @@ | |||
| 31 | #include <linux/elfcore.h> | 30 | #include <linux/elfcore.h> |
| 32 | #include <linux/sysrq.h> | 31 | #include <linux/sysrq.h> |
| 33 | 32 | ||
| 34 | #include <asm/oplib.h> | ||
| 35 | #include <asm/uaccess.h> | 33 | #include <asm/uaccess.h> |
| 36 | #include <asm/system.h> | 34 | #include <asm/system.h> |
| 37 | #include <asm/page.h> | 35 | #include <asm/page.h> |
| @@ -46,8 +44,6 @@ | |||
| 46 | #include <asm/mmu_context.h> | 44 | #include <asm/mmu_context.h> |
| 47 | #include <asm/unistd.h> | 45 | #include <asm/unistd.h> |
| 48 | #include <asm/hypervisor.h> | 46 | #include <asm/hypervisor.h> |
| 49 | #include <asm/sstate.h> | ||
| 50 | #include <asm/reboot.h> | ||
| 51 | #include <asm/syscalls.h> | 47 | #include <asm/syscalls.h> |
| 52 | #include <asm/irq_regs.h> | 48 | #include <asm/irq_regs.h> |
| 53 | #include <asm/smp.h> | 49 | #include <asm/smp.h> |
| @@ -115,35 +111,6 @@ void cpu_idle(void) | |||
| 115 | } | 111 | } |
| 116 | } | 112 | } |
| 117 | 113 | ||
| 118 | void machine_halt(void) | ||
| 119 | { | ||
| 120 | sstate_halt(); | ||
| 121 | prom_halt(); | ||
| 122 | panic("Halt failed!"); | ||
| 123 | } | ||
| 124 | |||
| 125 | void machine_alt_power_off(void) | ||
| 126 | { | ||
| 127 | sstate_poweroff(); | ||
| 128 | prom_halt_power_off(); | ||
| 129 | panic("Power-off failed!"); | ||
| 130 | } | ||
| 131 | |||
| 132 | void machine_restart(char * cmd) | ||
| 133 | { | ||
| 134 | char *p; | ||
| 135 | |||
| 136 | sstate_reboot(); | ||
| 137 | p = strchr (reboot_command, '\n'); | ||
| 138 | if (p) *p = 0; | ||
| 139 | if (cmd) | ||
| 140 | prom_reboot(cmd); | ||
| 141 | if (*reboot_command) | ||
| 142 | prom_reboot(reboot_command); | ||
| 143 | prom_reboot(""); | ||
| 144 | panic("Reboot failed!"); | ||
| 145 | } | ||
| 146 | |||
| 147 | #ifdef CONFIG_COMPAT | 114 | #ifdef CONFIG_COMPAT |
| 148 | static void show_regwindow32(struct pt_regs *regs) | 115 | static void show_regwindow32(struct pt_regs *regs) |
| 149 | { | 116 | { |
