diff options
author | Paul Mundt <lethal@linux-sh.org> | 2009-12-21 01:56:24 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-12-21 01:56:24 -0500 |
commit | a28b460ec7968f430a2d6ea2809b249ee9fe1d28 (patch) | |
tree | f4e5dc445b7fa4a5c12f892c2fd9b293c8f1ea13 /arch/sh/kernel/hw_breakpoint.c | |
parent | 4b4f887fb2780e39383c1f202b72f5a2780b2d4c (diff) |
sh: Fix up hw-breakpoints build for API changes.
The event callback handling has been removed in favour of going through a
generic event handler to handle overflows. Follows the x86 change.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel/hw_breakpoint.c')
-rw-r--r-- | arch/sh/kernel/hw_breakpoint.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/sh/kernel/hw_breakpoint.c b/arch/sh/kernel/hw_breakpoint.c index ff3cb3d7df8f..75b8c471120f 100644 --- a/arch/sh/kernel/hw_breakpoint.c +++ b/arch/sh/kernel/hw_breakpoint.c | |||
@@ -302,8 +302,7 @@ int arch_validate_hwbkpt_settings(struct perf_event *bp, | |||
302 | return ret; | 302 | return ret; |
303 | } | 303 | } |
304 | 304 | ||
305 | if (bp->callback) | 305 | ret = arch_store_info(bp); |
306 | ret = arch_store_info(bp); | ||
307 | 306 | ||
308 | if (ret < 0) | 307 | if (ret < 0) |
309 | return ret; | 308 | return ret; |
@@ -368,7 +367,7 @@ static int __kprobes hw_breakpoint_handler(struct die_args *args) | |||
368 | break; | 367 | break; |
369 | } | 368 | } |
370 | 369 | ||
371 | (bp->callback)(bp, args->regs); | 370 | perf_bp_event(bp, args->regs); |
372 | 371 | ||
373 | rcu_read_unlock(); | 372 | rcu_read_unlock(); |
374 | } | 373 | } |