aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/perf_counter.h
diff options
context:
space:
mode:
authorRobert Richter <robert.richter@amd.com>2009-04-29 06:46:59 -0400
committerIngo Molnar <mingo@elte.hu>2009-04-29 08:51:01 -0400
commit829b42dd395c5801f6ae87da87ecbdcfd5ef1a6c (patch)
tree971a75a1abd1a406cbb869991666b876ad32ddfe /include/linux/perf_counter.h
parentda1a776be1ac7f78bb30ececbec4c1383163b079 (diff)
perf_counter, x86: declare perf_max_counters only for CONFIG_PERF_COUNTERS
This is only needed for CONFIG_PERF_COUNTERS enabled. [ Impact: cleanup ] Signed-off-by: Robert Richter <robert.richter@amd.com> Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Paul Mackerras <paulus@samba.org> LKML-Reference: <1241002046-8832-3-git-send-email-robert.richter@amd.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/perf_counter.h')
-rw-r--r--include/linux/perf_counter.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/perf_counter.h b/include/linux/perf_counter.h
index 981432885301..be10b3ffe320 100644
--- a/include/linux/perf_counter.h
+++ b/include/linux/perf_counter.h
@@ -512,12 +512,13 @@ struct perf_cpu_context {
512 int recursion[4]; 512 int recursion[4];
513}; 513};
514 514
515#ifdef CONFIG_PERF_COUNTERS
516
515/* 517/*
516 * Set by architecture code: 518 * Set by architecture code:
517 */ 519 */
518extern int perf_max_counters; 520extern int perf_max_counters;
519 521
520#ifdef CONFIG_PERF_COUNTERS
521extern const struct hw_perf_counter_ops * 522extern const struct hw_perf_counter_ops *
522hw_perf_counter_init(struct perf_counter *counter); 523hw_perf_counter_init(struct perf_counter *counter);
523 524