aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/perf_event.h
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2009-12-27 05:51:52 -0500
committerIngo Molnar <mingo@elte.hu>2009-12-28 03:21:33 -0500
commit49f474331e563a6ecf3b1e87ec27ec5482b3e4f1 (patch)
treee3e4b5c718fd3d35ce01d4fe015886d9f3336760 /include/linux/perf_event.h
parent4cf40131a5cf4918e83b3756e58a1fc9e984f8ef (diff)
perf events: Remove arg from perf sched hooks
Since we only ever schedule the local cpu, there is no need to pass the cpu number to the perf sched hooks. This micro-optimizes things a bit. Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Mike Galbraith <efault@gmx.de> Cc: Paul Mackerras <paulus@samba.org> Cc: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> LKML-Reference: <new-submission> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/perf_event.h')
-rw-r--r--include/linux/perf_event.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h
index c66b34f75eea..a494e7501292 100644
--- a/include/linux/perf_event.h
+++ b/include/linux/perf_event.h
@@ -746,10 +746,10 @@ extern int perf_max_events;
746 746
747extern const struct pmu *hw_perf_event_init(struct perf_event *event); 747extern const struct pmu *hw_perf_event_init(struct perf_event *event);
748 748
749extern void perf_event_task_sched_in(struct task_struct *task, int cpu); 749extern void perf_event_task_sched_in(struct task_struct *task);
750extern void perf_event_task_sched_out(struct task_struct *task, 750extern void perf_event_task_sched_out(struct task_struct *task,
751 struct task_struct *next, int cpu); 751 struct task_struct *next);
752extern void perf_event_task_tick(struct task_struct *task, int cpu); 752extern void perf_event_task_tick(struct task_struct *task);
753extern int perf_event_init_task(struct task_struct *child); 753extern int perf_event_init_task(struct task_struct *child);
754extern void perf_event_exit_task(struct task_struct *child); 754extern void perf_event_exit_task(struct task_struct *child);
755extern void perf_event_free_task(struct task_struct *task); 755extern void perf_event_free_task(struct task_struct *task);
@@ -870,12 +870,12 @@ extern void perf_event_enable(struct perf_event *event);
870extern void perf_event_disable(struct perf_event *event); 870extern void perf_event_disable(struct perf_event *event);
871#else 871#else
872static inline void 872static inline void
873perf_event_task_sched_in(struct task_struct *task, int cpu) { } 873perf_event_task_sched_in(struct task_struct *task) { }
874static inline void 874static inline void
875perf_event_task_sched_out(struct task_struct *task, 875perf_event_task_sched_out(struct task_struct *task,
876 struct task_struct *next, int cpu) { } 876 struct task_struct *next) { }
877static inline void 877static inline void
878perf_event_task_tick(struct task_struct *task, int cpu) { } 878perf_event_task_tick(struct task_struct *task) { }
879static inline int perf_event_init_task(struct task_struct *child) { return 0; } 879static inline int perf_event_init_task(struct task_struct *child) { return 0; }
880static inline void perf_event_exit_task(struct task_struct *child) { } 880static inline void perf_event_exit_task(struct task_struct *child) { }
881static inline void perf_event_free_task(struct task_struct *task) { } 881static inline void perf_event_free_task(struct task_struct *task) { }