From: Huibin Hong Date: Thu, 19 Jan 2017 03:41:42 +0000 (+0800) Subject: fiq_debugger: do reboot_notifier for reset command X-Git-Tag: firefly_0821_release~716 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=949dd102635350b48646cedaf5e9cbc792bb42f2;p=firefly-linux-kernel-4.4.55.git fiq_debugger: do reboot_notifier for reset command Change-Id: I31e0789e7a7ed8cd645d103abc20a21fc3140f36 Signed-off-by: Huibin Hong --- diff --git a/drivers/staging/android/fiq_debugger/fiq_debugger.c b/drivers/staging/android/fiq_debugger/fiq_debugger.c index b1746502fe30..8a63290e5a9f 100644 --- a/drivers/staging/android/fiq_debugger/fiq_debugger.c +++ b/drivers/staging/android/fiq_debugger/fiq_debugger.c @@ -499,6 +499,8 @@ static bool fiq_debugger_fiq_exec(struct fiq_debugger_state *state, if (*cmd) { char tmp_cmd[32]; strlcpy(tmp_cmd, cmd, sizeof(tmp_cmd)); + blocking_notifier_call_chain(&reboot_notifier_list, + SYS_RESTART, (char *)cmd); machine_restart(tmp_cmd); } else { machine_restart(NULL);