Skip to content

Commit

Permalink
perf_counter, x86: declare perf_max_counters only for CONFIG_PERF_COU…
Browse files Browse the repository at this point in the history
…NTERS

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>
  • Loading branch information
Robert Richter authored and Ingo Molnar committed Apr 29, 2009
1 parent da1a776 commit 829b42d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/linux/perf_counter.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 829b42d

Please sign in to comment.