Skip to content
Snippets Groups Projects
Commit 1dd2980d authored by Peter Zijlstra's avatar Peter Zijlstra Committed by Ingo Molnar
Browse files

perf_event, amd: Fix spinlock initialization


Avoid kernels from exploding on AMD machines when they have any
lock debugging bits enabled.

Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 24691ea9
No related branches found
No related tags found
No related merge requests found
#ifdef CONFIG_CPU_SUP_AMD #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 static __initconst u64 amd_hw_cache_event_ids
[PERF_COUNT_HW_CACHE_MAX] [PERF_COUNT_HW_CACHE_MAX]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment