Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 14c89d97 authored by Pratik Patel's avatar Pratik Patel Committed by Stephen Boyd
Browse files

coresight: abort coresight tracing on kernel panic



Calling coresight_abort() on kernel panic will stop/disable the
current sink and dump other necessary info to aid post crash
analysis.

Change-Id: I9d1b0ab2ba9d1a665727ea436df0c906fc80dab7
Signed-off-by: default avatarPratik Patel <pratikp@codeaurora.org>
parent 6d2d825e
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -22,6 +22,7 @@
#include <linux/sysrq.h>
#include <linux/init.h>
#include <linux/nmi.h>
#include <linux/coresight.h>

#define PANIC_TIMER_STEP 100
#define PANIC_BLINK_SPD 18
@@ -73,6 +74,7 @@ void panic(const char *fmt, ...)
	long i, i_next = 0;
	int state = 0;

	coresight_abort();
	/*
	 * Disable local interrupts. This will prevent panic_smp_self_stop
	 * from deadlocking the first cpu that invokes the panic, since