OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
24691ea
)
perf_event, amd: Fix spinlock initialization
author
Peter Zijlstra
<peterz@infradead.org>
Fri, 26 Feb 2010 16:07:35 +0000
(17:07 +0100)
committer
Ingo Molnar
<mingo@elte.hu>
Fri, 26 Feb 2010 16:25:19 +0000
(17:25 +0100)
Avoid kernels from exploding on AMD machines when they have any
lock debugging bits enabled.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/cpu/perf_event_amd.c
patch
|
blob
|
history
diff --git
a/arch/x86/kernel/cpu/perf_event_amd.c
b/arch/x86/kernel/cpu/perf_event_amd.c
index
6d28e08
..
8f3dbfd
100644
(file)
--- 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]