提交 1dd2980d 编写于 作者: P Peter Zijlstra 提交者: Ingo Molnar

perf_event, amd: Fix spinlock initialization

Avoid kernels from exploding on AMD machines when they have any
lock debugging bits enabled.
Signed-off-by: NIngo Molnar <mingo@elte.hu>
上级 24691ea9
#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]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册