diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2009-12-27 05:51:52 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-12-28 03:21:33 -0500 |
commit | 49f474331e563a6ecf3b1e87ec27ec5482b3e4f1 (patch) | |
tree | e3e4b5c718fd3d35ce01d4fe015886d9f3336760 /include/linux/perf_event.h | |
parent | 4cf40131a5cf4918e83b3756e58a1fc9e984f8ef (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.h | 12 |
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 | ||
747 | extern const struct pmu *hw_perf_event_init(struct perf_event *event); | 747 | extern const struct pmu *hw_perf_event_init(struct perf_event *event); |
748 | 748 | ||
749 | extern void perf_event_task_sched_in(struct task_struct *task, int cpu); | 749 | extern void perf_event_task_sched_in(struct task_struct *task); |
750 | extern void perf_event_task_sched_out(struct task_struct *task, | 750 | extern void perf_event_task_sched_out(struct task_struct *task, |
751 | struct task_struct *next, int cpu); | 751 | struct task_struct *next); |
752 | extern void perf_event_task_tick(struct task_struct *task, int cpu); | 752 | extern void perf_event_task_tick(struct task_struct *task); |
753 | extern int perf_event_init_task(struct task_struct *child); | 753 | extern int perf_event_init_task(struct task_struct *child); |
754 | extern void perf_event_exit_task(struct task_struct *child); | 754 | extern void perf_event_exit_task(struct task_struct *child); |
755 | extern void perf_event_free_task(struct task_struct *task); | 755 | extern void perf_event_free_task(struct task_struct *task); |
@@ -870,12 +870,12 @@ extern void perf_event_enable(struct perf_event *event); | |||
870 | extern void perf_event_disable(struct perf_event *event); | 870 | extern void perf_event_disable(struct perf_event *event); |
871 | #else | 871 | #else |
872 | static inline void | 872 | static inline void |
873 | perf_event_task_sched_in(struct task_struct *task, int cpu) { } | 873 | perf_event_task_sched_in(struct task_struct *task) { } |
874 | static inline void | 874 | static inline void |
875 | perf_event_task_sched_out(struct task_struct *task, | 875 | perf_event_task_sched_out(struct task_struct *task, |
876 | struct task_struct *next, int cpu) { } | 876 | struct task_struct *next) { } |
877 | static inline void | 877 | static inline void |
878 | perf_event_task_tick(struct task_struct *task, int cpu) { } | 878 | perf_event_task_tick(struct task_struct *task) { } |
879 | static inline int perf_event_init_task(struct task_struct *child) { return 0; } | 879 | static inline int perf_event_init_task(struct task_struct *child) { return 0; } |
880 | static inline void perf_event_exit_task(struct task_struct *child) { } | 880 | static inline void perf_event_exit_task(struct task_struct *child) { } |
881 | static inline void perf_event_free_task(struct task_struct *task) { } | 881 | static inline void perf_event_free_task(struct task_struct *task) { } |