diff options
author | Peter Zijlstra <peterz@infradead.org> | 2010-02-11 07:21:58 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2010-02-26 04:56:53 -0500 |
commit | 6e37738a2fac964583debe91099bc3248554f6e5 (patch) | |
tree | 1f1bd19fcfcd328be139a796e2016877814436ad /include | |
parent | 38331f62c20456454eed9ebea2525f072c6f1d2e (diff) |
perf_events: Simplify code by removing cpu argument to hw_perf_group_sched_in()
Since the cpu argument to hw_perf_group_sched_in() is always
smp_processor_id(), simplify the code a little by removing this argument
and using the current cpu where needed.
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: David Miller <davem@davemloft.net>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
LKML-Reference: <1265890918.5396.3.camel@laptop>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/perf_event.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h index b08dfdad08cb..d0e072c5b58a 100644 --- a/include/linux/perf_event.h +++ b/include/linux/perf_event.h | |||
@@ -772,7 +772,7 @@ extern int perf_event_task_disable(void); | |||
772 | extern int perf_event_task_enable(void); | 772 | extern int perf_event_task_enable(void); |
773 | extern int hw_perf_group_sched_in(struct perf_event *group_leader, | 773 | extern int hw_perf_group_sched_in(struct perf_event *group_leader, |
774 | struct perf_cpu_context *cpuctx, | 774 | struct perf_cpu_context *cpuctx, |
775 | struct perf_event_context *ctx, int cpu); | 775 | struct perf_event_context *ctx); |
776 | extern void perf_event_update_userpage(struct perf_event *event); | 776 | extern void perf_event_update_userpage(struct perf_event *event); |
777 | extern int perf_event_release_kernel(struct perf_event *event); | 777 | extern int perf_event_release_kernel(struct perf_event *event); |
778 | extern struct perf_event * | 778 | extern struct perf_event * |