forked from rrcarlosr/Jetpack
31 lines
1.0 KiB
Diff
31 lines
1.0 KiB
Diff
From a1baca82e0a0c41251be6cae66849f041eb111e9 Mon Sep 17 00:00:00 2001
|
|
From: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
|
|
Date: Thu, 4 Feb 2016 16:38:10 +0100
|
|
Subject: [PATCH 298/352] kernel/perf: mark perf_cpu_context's timer as irqsafe
|
|
|
|
Otherwise we get a WARN_ON() backtrace and some events are reported as
|
|
"not counted".
|
|
|
|
Cc: stable-rt@vger.kernel.org
|
|
Reported-by: Yang Shi <yang.shi@linaro.org>
|
|
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
|
|
---
|
|
kernel/events/core.c | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/kernel/events/core.c b/kernel/events/core.c
|
|
index 712199f..c1df4a5 100644
|
|
--- a/kernel/events/core.c
|
|
+++ b/kernel/events/core.c
|
|
@@ -1066,6 +1066,7 @@ static void __perf_mux_hrtimer_init(struct perf_cpu_context *cpuctx, int cpu)
|
|
raw_spin_lock_init(&cpuctx->hrtimer_lock);
|
|
hrtimer_init(timer, CLOCK_MONOTONIC, HRTIMER_MODE_ABS_PINNED);
|
|
timer->function = perf_mux_hrtimer_handler;
|
|
+ timer->irqsafe = 1;
|
|
}
|
|
|
|
static int perf_mux_hrtimer_restart(struct perf_cpu_context *cpuctx)
|
|
--
|
|
2.7.4
|
|
|