perf: Use static variant of perf_event_overflow in core.c
authorRobert Richter <robert.richter@amd.com>
Thu, 5 Apr 2012 16:24:43 +0000 (18:24 +0200)
committerIngo Molnar <mingo@kernel.org>
Thu, 26 Apr 2012 11:52:52 +0000 (13:52 +0200)
No need to have an additional function layer.

Signed-off-by: Robert Richter <robert.richter@amd.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1333643084-26776-4-git-send-email-robert.richter@amd.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/events/core.c

index a6a9ec4cd8f583d640ab0da9e4941b19fe8fd990..9789a56b7d54320e2318b0f51c289730bda81e0d 100644 (file)
@@ -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;
        }