Baseline update from LYNQ_SDK_ASR_T108_V05.03.01.00(kernel build error.)
Change-Id: I56fc72cd096e82c589920026553170e5cb9692eb
diff --git a/marvell/linux/kernel/panic.c b/marvell/linux/kernel/panic.c
old mode 100644
new mode 100755
index 0a1293b..b0282f7
--- a/marvell/linux/kernel/panic.c
+++ b/marvell/linux/kernel/panic.c
@@ -231,6 +231,10 @@
int old_cpu, this_cpu;
bool _crash_kexec_post_notifiers = crash_kexec_post_notifiers;
+ //mbtk wyq for reboot reason
+ int ret = MBTK_REBOOT_RESULT_FAIL;
+ //mbtk wyq for reboot reason
+
if (panic_on_warn) {
/*
* This thread may hit another WARN() in the panic path.
@@ -281,6 +285,14 @@
buf[len - 1] = '\0';
pr_emerg("Kernel panic - not syncing: %s\n", buf);
+
+//mbtk wyq for reboot reason
+ ret = mbtk_reboot_reason_save(MBTK_DEV_INFO_NAME, MBTK_REBOOT_FLAG_ABNORMAL);
+ if(ret) {
+ pr_emerg("mbtk_reboot_reason_save err\n");
+ }
+//mbtk wyq for reboot reason
+
#ifdef CONFIG_DEBUG_BUGVERBOSE
/*
* Avoid nested stack-dumping if a panic occurs during oops processing