#include <soc/samsung/exynos-pmu.h>
#include <soc/samsung/exynos-sdm.h>
+#include <asm/cacheflush.h>
+
#ifdef CONFIG_EXYNOS_CORESIGHT_ETR
#include <asm/core_regs.h>
#endif
static void exynos_post_panic_exit(void *val)
{
+ flush_cache_all();
+
#ifdef CONFIG_EXYNOS_SDM
if (dbg_snapshot_is_scratch())
exynos_sdm_dump_secure_region();
static void exynos_save_context_exit(void *val)
{
- /* TODO: Something */
+ flush_cache_all();
}
static void exynos_start_watchdog(void *val)
#include <asm/cputype.h>
#include <asm/smp_plat.h>
#include <asm/core_regs.h>
-#include <asm/cacheflush.h>
#include "debug-snapshot-local.h"
#include <linux/debug-snapshot-helper.h>
dbg_snapshot_dump_sfr();
#endif
dbg_snapshot_save_context(NULL);
-// flush_cache_all();
+
dbg_snapshot_print_panic_report();
dss_soc_ops->soc_post_panic_exit(NULL);
pr_emerg("debug-snapshot: normal reboot done\n");
dbg_snapshot_save_context(NULL);
-// flush_cache_all();
return 0;
}
#endif
dbg_snapshot_dump_task_info();
pr_emerg("linux_banner: %s\n", linux_banner);
-// flush_cache_all();
+
return 0;
}
#include <linux/kernel.h>
#include <linux/io.h>
#include <linux/notifier.h>
-#include <linux/reboot.h>
#include <linux/delay.h>
#include <linux/kallsyms.h>
#include <linux/input.h>
} else
pr_emerg("debug-snapshot: skip context saved(CPU:%d)\n", cpu);
-// flush_cache_all();
raw_spin_unlock_irqrestore(&dss_desc.ctrl_lock, flags);
dss_soc_ops->soc_save_context_exit(NULL);