forked from rubenslte/android_kernel_samsung_msm8226
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: Pratik Patel <pratikp@codeaurora.org>
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
#include <linux/init.h>
|
||||
#include <linux/nmi.h>
|
||||
#include <linux/dmi.h>
|
||||
#include <linux/coresight.h>
|
||||
|
||||
#define PANIC_TIMER_STEP 100
|
||||
#define PANIC_BLINK_SPD 18
|
||||
@@ -80,6 +81,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
|
||||
|
||||
Reference in New Issue
Block a user