diff options
author | Paul Mackerras <paulus@samba.org> | 2009-01-09 01:24:34 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2009-01-09 01:24:34 -0500 |
commit | 4eb96fcfe07b7f2a05577e57533840f8e26bea53 (patch) | |
tree | b3ad235de168cddf6322d907440c217f07306290 /kernel/perf_counter.c | |
parent | 3cbed429a9ccdb7a243f733b1056fe5c39e9004c (diff) |
perf_counter: Add dummy perf_counter_print_debug function
Impact: minimize requirements on architectures
Currently, an architecture just enabling CONFIG_PERF_COUNTERS but not
providing any extra functions will fail to build with
perf_counter_print_debug being undefined, since we don't provide an
empty dummy definition like we do with the hw_perf_* functions.
This provides an empty dummy perf_counter_print_debug() to make it
easier for architectures to turn on CONFIG_PERF_COUNTERS.
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'kernel/perf_counter.c')
-rw-r--r-- | kernel/perf_counter.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/perf_counter.c b/kernel/perf_counter.c index 9ad11e44d9a..4c0dccb756a 100644 --- a/kernel/perf_counter.c +++ b/kernel/perf_counter.c | |||
@@ -54,6 +54,8 @@ int __weak hw_perf_group_sched_in(struct perf_counter *group_leader, | |||
54 | return 0; | 54 | return 0; |
55 | } | 55 | } |
56 | 56 | ||
57 | void __weak perf_counter_print_debug(void) { } | ||
58 | |||
57 | static void | 59 | static void |
58 | list_add_counter(struct perf_counter *counter, struct perf_counter_context *ctx) | 60 | list_add_counter(struct perf_counter *counter, struct perf_counter_context *ctx) |
59 | { | 61 | { |