Messages in this thread Patch in this message | | | Date | Sun, 28 Jun 2009 14:04:22 -0700 | From | Yinghai Lu <> | Subject | [PATCH] x86/perf_count: make perf_count_mask to local |
| |
only used in init_hw_per_counters
[Impact: cleanup]
Signed-off-by: Yinghai Lu <yinghai@kernel.org> --- arch/x86/kernel/cpu/perf_counter.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
Index: linux-2.6/arch/x86/kernel/cpu/perf_counter.c =================================================================== --- linux-2.6.orig/arch/x86/kernel/cpu/perf_counter.c +++ linux-2.6/arch/x86/kernel/cpu/perf_counter.c @@ -25,8 +25,6 @@ #include <asm/stacktrace.h> #include <asm/nmi.h> -static u64 perf_counter_mask __read_mostly; - struct cpu_hw_counters { struct perf_counter *counters[X86_PMC_IDX_MAX]; unsigned long used_mask[BITS_TO_LONGS(X86_PMC_IDX_MAX)]; @@ -1474,6 +1472,7 @@ static int amd_pmu_init(void) void __init init_hw_perf_counters(void) { + u64 perf_counter_mask; int err; pr_info("Performance Counters: ");
| |