summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorSe Wang (Patrick) Oh <sewango@codeaurora.org>2015-07-21 19:23:48 -0700
committerRohit Vaswani <rvaswani@codeaurora.org>2016-03-01 12:22:26 -0800
commit05635f8cd708c048bb1c68f425ae9c073ca50b51 (patch)
tree1bc935372c9c781aa67d4380f187fd74959aa9fb /kernel
parent7cc3dac3536dfdc93b965a15ac737667ac236bbf (diff)
trace: rtb: disable RTB in the first panic notifier
As the priority of RTB panic notifier was zero, it was not guaranteed to disable RTB right after kernel panic. So RTB log buffer could be flooded with some I/O operations after panic. By setting the priority of RTB panic notifier to the highest value, make sure RTB is disabled right after a kernel panic. Change-Id: If9efc2ec31efa6aa17e92b2b01e81ab4df6d1730 Signed-off-by: Se Wang (Patrick) Oh <sewango@codeaurora.org>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/trace/msm_rtb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/trace/msm_rtb.c b/kernel/trace/msm_rtb.c
index 6b87df023640..ba609d5eb07f 100644
--- a/kernel/trace/msm_rtb.c
+++ b/kernel/trace/msm_rtb.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013-2014, The Linux Foundation. All rights reserved.
+ * Copyright (c) 2013-2015, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
@@ -88,6 +88,7 @@ static int msm_rtb_panic_notifier(struct notifier_block *this,
static struct notifier_block msm_rtb_panic_blk = {
.notifier_call = msm_rtb_panic_notifier,
+ .priority = INT_MAX,
};
int notrace msm_rtb_event_should_log(enum logk_event_type log_type)