diff options
Diffstat (limited to 'arch/mips/loongson/common/reset.c')
-rw-r--r-- | arch/mips/loongson/common/reset.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/arch/mips/loongson/common/reset.c b/arch/mips/loongson/common/reset.c index 33dff188b4de..4bd9c18b07a5 100644 --- a/arch/mips/loongson/common/reset.c +++ b/arch/mips/loongson/common/reset.c | |||
@@ -25,17 +25,26 @@ static void loongson_restart(char *command) | |||
25 | ((void (*)(void))ioremap_nocache(LOONGSON_BOOT_BASE, 4)) (); | 25 | ((void (*)(void))ioremap_nocache(LOONGSON_BOOT_BASE, 4)) (); |
26 | } | 26 | } |
27 | 27 | ||
28 | static void loongson_halt(void) | 28 | static void loongson_poweroff(void) |
29 | { | 29 | { |
30 | mach_prepare_shutdown(); | 30 | mach_prepare_shutdown(); |
31 | unreachable(); | 31 | unreachable(); |
32 | } | 32 | } |
33 | 33 | ||
34 | static void loongson_halt(void) | ||
35 | { | ||
36 | pr_notice("\n\n** You can safely turn off the power now **\n\n"); | ||
37 | while (1) { | ||
38 | if (cpu_wait) | ||
39 | cpu_wait(); | ||
40 | } | ||
41 | } | ||
42 | |||
34 | static int __init mips_reboot_setup(void) | 43 | static int __init mips_reboot_setup(void) |
35 | { | 44 | { |
36 | _machine_restart = loongson_restart; | 45 | _machine_restart = loongson_restart; |
37 | _machine_halt = loongson_halt; | 46 | _machine_halt = loongson_halt; |
38 | pm_power_off = loongson_halt; | 47 | pm_power_off = loongson_poweroff; |
39 | 48 | ||
40 | return 0; | 49 | return 0; |
41 | } | 50 | } |