tegrakernel/kernel/kernel-4.9/rt-patches/0294-kernel-perf-mark-perf_...

31 lines
1.0 KiB
Diff
Raw Normal View History

2022-02-16 09:13:02 -06:00
From 64b710a93390137b1a8a15bb39ac41d3a3820bed 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 294/365] 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 6796d1faf3ae..94cd426d6826 100644
--- a/kernel/events/core.c
+++ b/kernel/events/core.c
@@ -1072,6 +1072,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.28.0