summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Krummenacher <max.krummenacher@toradex.com>2015-12-12 10:07:31 +0100
committerMax Krummenacher <max.krummenacher@toradex.com>2015-12-26 14:55:37 +0100
commit8d35764ee16976d81ac7dd0b75b3c0b11f977ad1 (patch)
treece826838c189efa4736c040d145be7f03b5be108
parent49125075801b59693bc0c02a6ad5584108cd67cb (diff)
process.c: if power off fails, do at least a halt
Otherwise power_machine_power_off() returns and e.g. unexpected interrupts create stack traces. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
-rw-r--r--arch/arm/kernel/process.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/kernel/process.c b/arch/arm/kernel/process.c
index 3ee6e40d4145..f5e98acf1c07 100644
--- a/arch/arm/kernel/process.c
+++ b/arch/arm/kernel/process.c
@@ -219,6 +219,9 @@ void machine_power_off(void)
if (pm_power_off)
pm_power_off();
+ /* shoud pm_power_off not exist of fail, then at least do a halt*/
+ pr_err("%s pm_power_off() did return\n",__func__);
+ machine_halt();
}
/*