projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.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
|
blame
|
history
diff --git
a/arch/x86/kernel/cpu/perf_event_amd.c
b/arch/x86/kernel/cpu/perf_event_amd.c
index 6d28e08563e8c4c54f6c32377bdb9252b6a8543d..8f3dbfda3c4f0553f7687856337637ab153baa88 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]