summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2010-02-26 17:07:35 +0100
committerIngo Molnar <mingo@elte.hu>2010-02-26 17:25:19 +0100
commit1dd2980d990068e20045b90c424518cc7f3657ff (patch)
tree04a7250ff88eb88856c541e5286b493c6fb897d4 /arch
parent24691ea964cc0123e386b661e03a86a481c6ee79 (diff)
downloadlinux-1dd2980d990068e20045b90c424518cc7f3657ff.tar.gz
linux-1dd2980d990068e20045b90c424518cc7f3657ff.tar.bz2
linux-1dd2980d990068e20045b90c424518cc7f3657ff.zip
perf_event, amd: Fix spinlock initialization
Avoid kernels from exploding on AMD machines when they have any lock debugging bits enabled. Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/kernel/cpu/perf_event_amd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/cpu/perf_event_amd.c b/arch/x86/kernel/cpu/perf_event_amd.c
index 6d28e08563e8..8f3dbfda3c4f 100644
--- a/arch/x86/kernel/cpu/perf_event_amd.c
+++ b/arch/x86/kernel/cpu/perf_event_amd.c
@@ -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]