ANDROID: ARM: fiq_debugger: add process context reboot command
authorColin Cross <ccross@android.com>
Fri, 20 Jul 2012 01:40:04 +0000 (18:40 -0700)
committerAmit Pundir <amit.pundir@linaro.org>
Mon, 18 Dec 2017 15:41:22 +0000 (21:11 +0530)
commitcb5774b50389fc588d532e0864a0c1bc0010ac2a
tree2179727fc76f0c10b755e3e4d6c5ae53d6904a84
parentaecfa53f35c667ce33b4af14d996bfe51c3e614e
ANDROID: ARM: fiq_debugger: add process context reboot command

kernel_restart cannot be called from interrupt context.  Add support for
commands called from a work function, and implement the "reboot" command
there.  Also rename the existing irq-mode command to "reset" and change
it to use machine_restart instead of kernel_restart.

Change-Id: I3c423147c01db03d89e95a5b99096ca89462079f
Signed-off-by: Colin Cross <ccross@android.com>
[AmitP: Folded following android-4.9 commit changes into this patch
        3b61956a41a5 ("ANDROID: fiq_debugger: Fix minor bug in code")]
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
arch/arm/common/fiq_debugger.c