[PATCH 02/29] perfcounter: declare perf_max_counters only for CONFIG_PERF_COUNTERS

Robert Richter
2009-04-29T10:52:07Z

This is only needed for CONFIG_PERF_COUNTERS enabled.

Signed-off-by: Robert Richter <robert.richter@amd.com>
---
include/linux/perf_counter.h | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/include/linux/perf_counter.h b/include/linux/perf_counter.h
index 9814328..be10b3f 100644
--- a/include/linux/perf_counter.h
+++ b/include/linux/perf_counter.h
@@ -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);

--
1.6.1.3