mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 11:26:02 +09:00
fiq_debugger: do reboot_notifier for reset command
Change-Id: I31e0789e7a7ed8cd645d103abc20a21fc3140f36 Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user