From: Robert Richter Date: Thu, 5 Apr 2012 16:24:43 +0000 (+0200) Subject: perf: Use static variant of perf_event_overflow in core.c X-Git-Tag: v3.12-rc1~3124^3~60 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=33b07b8be7f0e1e8e4184e3473d71f174e4b0641;p=kernel%2Fkernel-generic.git perf: Use static variant of perf_event_overflow in core.c No need to have an additional function layer. Signed-off-by: Robert Richter Signed-off-by: Peter Zijlstra Link: http://lkml.kernel.org/r/1333643084-26776-4-git-send-email-robert.richter@amd.com Signed-off-by: Ingo Molnar --- diff --git a/kernel/events/core.c b/kernel/events/core.c index a6a9ec4..9789a56 100644 --- a/kernel/events/core.c +++ b/kernel/events/core.c @@ -5350,7 +5350,7 @@ static enum hrtimer_restart perf_swevent_hrtimer(struct hrtimer *hrtimer) if (regs && !perf_exclude_event(event, regs)) { if (!(event->attr.exclude_idle && is_idle_task(current))) - if (perf_event_overflow(event, &data, regs)) + if (__perf_event_overflow(event, 1, &data, regs)) ret = HRTIMER_NORESTART; }