From: 黄涛 Date: Sun, 27 May 2012 10:44:46 +0000 (+0800) Subject: rk: fiq_debugger: support reboot with command X-Git-Tag: firefly_0821_release~9142^2~47 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=aeb4f125a5849e3a1147b11cb0b2e1d765605f65;p=firefly-linux-kernel-4.4.55.git rk: fiq_debugger: support reboot with command --- diff --git a/arch/arm/common/fiq_debugger.c b/arch/arm/common/fiq_debugger.c index d0a8aa8a3216..c95af41324a9 100644 --- a/arch/arm/common/fiq_debugger.c +++ b/arch/arm/common/fiq_debugger.c @@ -658,6 +658,8 @@ static bool debug_fiq_exec(struct fiq_debugger_state *state, dump_stacktrace(state, (struct pt_regs *)regs, 100, svc_sp); } else if (!strcmp(cmd, "reboot")) { arch_reset(0, 0); + } else if (!strncmp(cmd, "reboot ", 7)) { + arch_reset(0, &cmd[7]); } else if (!strcmp(cmd, "irqs")) { dump_irqs(state); } else if (!strcmp(cmd, "kmsg")) {