From fff48fe57033972249e101d964841f1ae6cfdf30 Mon Sep 17 00:00:00 2001 From: Craig Dooley Date: Sun, 15 May 2022 16:02:20 +0000 Subject: Fix the crash reason for AoC restarts Bug: 232660781 Signed-off-by: Craig Dooley Change-Id: Ia67a885f50e015138b5ae190a664619c93a66081 (cherry picked from commit 0315e98f1c4b282a50fe54b97a90fcbf51a2b541) --- aoc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'aoc.c') diff --git a/aoc.c b/aoc.c index 3c7219e..8117375 100644 --- a/aoc.c +++ b/aoc.c @@ -2496,7 +2496,7 @@ static void aoc_watchdog(struct work_struct *work) char ap_reset_reason[RAMDUMP_SECTION_CRASH_INFO_SIZE]; int restart_rc; u32 section_flags; - bool ap_reset = true; + bool ap_reset = false; prvdata->total_restarts++; @@ -2517,7 +2517,7 @@ static void aoc_watchdog(struct work_struct *work) ap_reset = true; snprintf(ap_reset_reason, RAMDUMP_SECTION_CRASH_INFO_SIZE - 1, - "AP Triggered Reset: %s", prvdata->ap_reset_reason); + "AP Reset: %s", prvdata->ap_reset_reason); trigger_aoc_ramdump(prvdata); } -- cgit v1.2.3