perf_event, amd: Fix spinlock initialization
authorPeter Zijlstra <peterz@infradead.org>
Fri, 26 Feb 2010 16:07:35 +0000 (17:07 +0100)
committerIngo Molnar <mingo@elte.hu>
Fri, 26 Feb 2010 16:25:19 +0000 (17:25 +0100)
Avoid kernels from exploding on AMD machines when they have any
lock debugging bits enabled.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/cpu/perf_event_amd.c

index 6d28e08563e8c4c54f6c32377bdb9252b6a8543d..8f3dbfda3c4f0553f7687856337637ab153baa88 100644 (file)
@@ -1,6 +1,6 @@
 #ifdef CONFIG_CPU_SUP_AMD
 
-static raw_spinlock_t amd_nb_lock;
+static DEFINE_RAW_SPINLOCK(amd_nb_lock);
 
 static __initconst u64 amd_hw_cache_event_ids
                                [PERF_COUNT_HW_CACHE_MAX]