sh: Fix up hw-breakpoints build for API changes.
authorPaul Mundt <lethal@linux-sh.org>
Mon, 21 Dec 2009 06:56:24 +0000 (15:56 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 21 Dec 2009 06:56:24 +0000 (15:56 +0900)
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>
arch/sh/kernel/hw_breakpoint.c

index ff3cb3d7df8f6e1388ce3e4eaa8845a976d30bfc..75b8c471120fd27d80e869b7a41b471833aa6917 100644 (file)
@@ -302,8 +302,7 @@ int arch_validate_hwbkpt_settings(struct perf_event *bp,
                return ret;
        }
 
-       if (bp->callback)
-               ret = arch_store_info(bp);
+       ret = arch_store_info(bp);
 
        if (ret < 0)
                return ret;
@@ -368,7 +367,7 @@ static int __kprobes hw_breakpoint_handler(struct die_args *args)
                        break;
                }
 
-               (bp->callback)(bp, args->regs);
+               perf_bp_event(bp, args->regs);
 
                rcu_read_unlock();
        }