Skip to content

Commit

Permalink
sh: Fix up hw-breakpoints build for API changes.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Paul Mundt committed Dec 21, 2009
1 parent 4b4f887 commit a28b460
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions arch/sh/kernel/hw_breakpoint.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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();
}
Expand Down

0 comments on commit a28b460

Please sign in to comment.