summaryrefslogtreecommitdiff
path: root/arch/arm/kernel
diff options
context:
space:
mode:
authorMax Krummenacher <max.krummenacher@toradex.com>2015-12-12 10:07:31 +0100
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>2020-02-09 22:45:32 +0100
commitf54ef48adff450271c5f4304218c274615a5dfb0 (patch)
treeee58707c9417dddd1e5609aa44b8ae74f213d534 /arch/arm/kernel
parent7e0f827d0d899fee575df2399f4f8ae8be690ca2 (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> (cherry picked from commit 8d35764ee16976d81ac7dd0b75b3c0b11f977ad1) (cherry picked from commit e00c5466cc726653fa07a6fd42b39759a5a45bd3)
Diffstat (limited to 'arch/arm/kernel')
-rw-r--r--arch/arm/kernel/reboot.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/kernel/reboot.c b/arch/arm/kernel/reboot.c
index 3b2aa9a9fe26..350715b32d4b 100644
--- a/arch/arm/kernel/reboot.c
+++ b/arch/arm/kernel/reboot.c
@@ -123,6 +123,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();
}
/*