From 1ffb8082c5ce324f993c90a51d2c679f224501a9 Mon Sep 17 00:00:00 2001 From: Hosung Kim Date: Thu, 24 May 2018 13:48:30 +0900 Subject: [PATCH] [COMMON] lib: dss: change timing to clear DSS_SIGN_PANIC This commit change timing to clear DSS_SIGN_PANIC because it works it including panic of leading core Change-Id: I1fa1bbf187c276935a126b7f6c78629944daa617 Signed-off-by: Hosung Kim --- lib/debug-snapshot-helper.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/debug-snapshot-helper.c b/lib/debug-snapshot-helper.c index 3bdc0c162eaa..092b8e7ca265 100644 --- a/lib/debug-snapshot-helper.c +++ b/lib/debug-snapshot-helper.c @@ -307,11 +307,6 @@ int dbg_snapshot_post_reboot(char *cmd) dss_soc_ops->soc_post_reboot_entry(NULL); - /* clear DSS_SIGN_PANIC when normal reboot */ - for_each_possible_cpu(cpu) { - dbg_snapshot_set_core_panic_stat(DSS_SIGN_RESET, cpu); - } - dbg_snapshot_report_reason(DSS_SIGN_NORMAL_REBOOT); if (!cmd) @@ -323,6 +318,11 @@ int dbg_snapshot_post_reboot(char *cmd) dbg_snapshot_save_context(NULL); + /* clear DSS_SIGN_PANIC when normal reboot */ + for_each_possible_cpu(cpu) { + dbg_snapshot_set_core_panic_stat(DSS_SIGN_RESET, cpu); + } + dss_soc_ops->soc_post_reboot_exit(NULL); return 0; -- 2.20.1