summaryrefslogtreecommitdiff
path: root/arch/mips/loongson64/common/reset.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/loongson64/common/reset.c')
-rw-r--r--arch/mips/loongson64/common/reset.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/mips/loongson64/common/reset.c b/arch/mips/loongson64/common/reset.c
index a60715e11306..b26892ce871c 100644
--- a/arch/mips/loongson64/common/reset.c
+++ b/arch/mips/loongson64/common/reset.c
@@ -59,7 +59,12 @@ static void loongson_poweroff(void)
{
#ifndef CONFIG_LEFI_FIRMWARE_INTERFACE
mach_prepare_shutdown();
- unreachable();
+
+ /*
+ * It needs a wait loop here, but mips/kernel/reset.c already calls
+ * a generic delay loop, machine_hang(), so simply return.
+ */
+ return;
#else
void (*fw_poweroff)(void) = (void *)loongson_sysconf.poweroff_addr;