From: Robert Richter Date: Wed, 29 Apr 2009 10:46:59 +0000 (+0200) Subject: perf_counter, x86: declare perf_max_counters only for CONFIG_PERF_COUNTERS X-Git-Tag: v2.6.31-rc1~383^2~353 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=829b42dd395c5801f6ae87da87ecbdcfd5ef1a6c;p=profile%2Fivi%2Fkernel-x86-ivi.git 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 Acked-by: Peter Zijlstra Cc: Paul Mackerras LKML-Reference: <1241002046-8832-3-git-send-email-robert.richter@amd.com> Signed-off-by: Ingo Molnar --- 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);