X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=arch%2Fsh%2Foprofile%2Fop_model_sh7750.c;h=5ec9ddcc4b0bd1d40d69c699dd1cb636f4e0ce9b;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=de09ba767158e059f2cc9f560aa269a7fba7b7e8;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/arch/sh/oprofile/op_model_sh7750.c b/arch/sh/oprofile/op_model_sh7750.c index de09ba767..5ec9ddcc4 100644 --- a/arch/sh/oprofile/op_model_sh7750.c +++ b/arch/sh/oprofile/op_model_sh7750.c @@ -112,14 +112,9 @@ static struct op_counter_config ctr[NR_CNTRS]; */ static int sh7750_timer_notify(struct notifier_block *self, - unsigned long val, void *data) + unsigned long val, void *regs) { - struct pt_regs *regs = data; - unsigned long pc; - - pc = instruction_pointer(regs); - oprofile_add_sample(pc, !user_mode(regs), 0, smp_processor_id()); - + oprofile_add_sample((struct pt_regs *)regs, 0); return 0; }