diff options
author | Max Krummenacher <max.krummenacher@toradex.com> | 2015-12-12 10:07:31 +0100 |
---|---|---|
committer | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2015-12-15 14:09:20 +0100 |
commit | c4fcddab7c2e68c30c9f33ec1ece84d76a649a56 (patch) | |
tree | b9cbacf8c8c16090c76270b0ddc34ea4822370f5 | |
parent | 253be8568aca5be9b7d4b1986da47fb49eb04f09 (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.c | 3 |
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(); } /* |