From: Hosung Kim Date: Thu, 24 May 2018 04:48:30 +0000 (+0900) Subject: [COMMON] lib: dss: change timing to clear DSS_SIGN_PANIC X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1ffb8082c5ce324f993c90a51d2c679f224501a9;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [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 --- 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;