mirror of
https://github.com/torvalds/linux.git
synced 2026-11-26 08:23:17 +00:00
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 <[email protected]> Signed-off-by: K.Prasad <[email protected]> [[email protected]: v3: Check to make sure we target current task] Signed-off-by: Naveen N. Rao <[email protected]> Acked-by: Frederic Weisbecker <[email protected]> Signed-off-by: Peter Zijlstra <[email protected]> Link: http://lkml.kernel.org/r/[email protected] [ Fixed build error on MIPS. ] Signed-off-by: Ingo Molnar <[email protected]>