diff options
| author | K.Prasad <[email protected]> | 2012-08-02 08:16:35 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2012-09-04 15:29:53 +0000 |
| commit | 500ad2d8b01390c98bc6dce068bccfa9534b8212 (patch) | |
| tree | a7e1330e5380d4cb4be02820a86fbea1dc0da5c9 /lib/dynamic_debug.c | |
| parent | perf/x86: Enable Intel Cedarview Atom suppport (diff) | |
| download | kernel-500ad2d8b01390c98bc6dce068bccfa9534b8212.tar.gz kernel-500ad2d8b01390c98bc6dce068bccfa9534b8212.zip | |
perf/hwpb: Invoke __perf_event_disable() if interrupts are already disabled
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]>
Diffstat (limited to 'lib/dynamic_debug.c')
0 files changed, 0 insertions, 0 deletions
