Files
android_kernel_samsung_msm8…/kernel
K.Prasad 0d6eb78978 perf/hwpb: Invoke __perf_event_disable() if interrupts are already disabled
commit 500ad2d8b01390c98bc6dce068bccfa9534b8212 upstream.

While debugging a warning message on PowerPC while using hardware
breakpoints, it was discovered that when perf_event_disable is invoked
through hw_breakpoint_handler function with interrupts disabled, a
subsequent IPI in the code path would trigger a WARN_ON_ONCE message in
smp_call_function_single function.

This patch calls __perf_event_disable() when interrupts are already
disabled, instead of perf_event_disable().

Reported-by: Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
Signed-off-by: K.Prasad <Prasad.Krishnan@gmail.com>
[naveen.n.rao@linux.vnet.ibm.com: v3: Check to make sure we target current task]
Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Acked-by: Frederic Weisbecker <fweisbec@gmail.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/20120802081635.5811.17737.stgit@localhost.localdomain
[ Fixed build error on MIPS. ]
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Kevin F. Haggerty <haggertk@lineageos.org>

Change-Id: I4ed3bb0ff5c41d633868d488aaff14897e56e973
2020-03-07 14:01:44 +01:00
..
…
…
2019-08-05 14:20:47 +02:00
2019-08-06 10:44:16 +02:00
2019-08-05 14:20:47 +02:00
…
…
…
…
2012-03-28 18:30:03 +01:00
…
…
2019-08-06 12:26:30 +02:00
2019-08-05 14:20:47 +02:00
…
2019-08-06 10:41:58 +02:00
2019-08-06 10:41:58 +02:00
…
2012-03-29 19:52:46 +08:00
2019-08-02 15:14:10 +02:00
…
…
2019-08-05 14:20:47 +02:00
2012-03-28 18:30:03 +01:00
2019-08-05 14:20:47 +02:00
2019-08-05 14:22:38 +02:00
2019-08-05 14:20:47 +02:00
2019-08-06 12:26:30 +02:00
…
…
…
…
2019-08-06 12:26:30 +02:00