From: Peter Zijlstra Date: Fri, 26 Feb 2010 16:07:35 +0000 (+0100) Subject: perf_event, amd: Fix spinlock initialization X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1dd2980d990068e20045b90c424518cc7f3657ff;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git 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 --- 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]