perf_counter, x86: declare perf_max_counters only for CONFIG_PERF_COUNTERS
authorRobert Richter <robert.richter@amd.com>
Wed, 29 Apr 2009 10:46:59 +0000 (12:46 +0200)
committerIngo Molnar <mingo@elte.hu>
Wed, 29 Apr 2009 12:51:01 +0000 (14:51 +0200)
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>
include/linux/perf_counter.h

index 981432885301de920788633e785323d7c11a8b41..be10b3ffe320885c3e4093872ef684ec647073c0 100644 (file)
@@ -512,12 +512,13 @@ struct perf_cpu_context {
        int                     recursion[4];
 };
 
+#ifdef CONFIG_PERF_COUNTERS
+
 /*
  * Set by architecture code:
  */
 extern int perf_max_counters;
 
-#ifdef CONFIG_PERF_COUNTERS
 extern const struct hw_perf_counter_ops *
 hw_perf_counter_init(struct perf_counter *counter);