[COMMON] lib: dss: change timing to clear DSS_SIGN_PANIC
authorHosung Kim <hosung0.kim@samsung.com>
Thu, 24 May 2018 04:48:30 +0000 (13:48 +0900)
committerYoungmin Nam <youngmin.nam@samsung.com>
Fri, 29 Jun 2018 09:18:18 +0000 (18:18 +0900)
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 <hosung0.kim@samsung.com>
lib/debug-snapshot-helper.c

index 3bdc0c162eaab259b90f7d35b876766e95f1e297..092b8e7ca265ebd83bf7d68e822d7d1806774913 100644 (file)
@@ -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;