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 6d28e08..8f3dbfd 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]