[PATCH] x86/perf_count: make perf_count_mask to local

From: Yinghai Lu
Date: Sun Jun 28 2009 - 17:04:46 EST



only used in init_hw_per_counters

[Impact: cleanup]

Signed-off-by: Yinghai Lu <yinghai@xxxxxxxxxx>
---
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: ");
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/