Skip to content

Commit

Permalink
perf_event, amd: Fix spinlock initialization
Browse files Browse the repository at this point in the history
Avoid kernels from exploding on AMD machines when they have any
lock debugging bits enabled.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Peter Zijlstra authored and Ingo Molnar committed Feb 26, 2010
1 parent 24691ea commit 1dd2980
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/kernel/cpu/perf_event_amd.c
Original file line number Diff line number Diff line change
@@ -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]
Expand Down

0 comments on commit 1dd2980

Please sign in to comment.