projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e19997
)
perf/x86: Fix typo in uncore_pmu_to_box
author
Yan, Zheng
<zheng.z.yan@intel.com>
Thu, 27 Sep 2012 01:33:26 +0000
(09:33 +0800)
committer
Ingo Molnar
<mingo@kernel.org>
Thu, 27 Sep 2012 06:05:13 +0000
(08:05 +0200)
The variable box should not be declared as static.
This could probably cause crashes with sufficiently parallel
uncore PMU use.
Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
Cc: eranian@google.com
Cc: a.p.zijlstra@chello.nl
Link:
http://lkml.kernel.org/r/1348709606-2759-1-git-send-email-zheng.z.yan@intel.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/cpu/perf_event_intel_uncore.c
patch
|
blob
|
history
diff --git
a/arch/x86/kernel/cpu/perf_event_intel_uncore.c
b/arch/x86/kernel/cpu/perf_event_intel_uncore.c
index 38e4894165b9cdc096e038de65fc4ee04bdb0690..c7c55e74ac60fd028c98dc804ce3a8044655be54 100644
(file)
--- a/
arch/x86/kernel/cpu/perf_event_intel_uncore.c
+++ b/
arch/x86/kernel/cpu/perf_event_intel_uncore.c
@@
-1950,7
+1950,7
@@
struct intel_uncore_box *uncore_alloc_box(struct intel_uncore_type *type, int cp
static struct intel_uncore_box *
uncore_pmu_to_box(struct intel_uncore_pmu *pmu, int cpu)
{
- st
atic st
ruct intel_uncore_box *box;
+ struct intel_uncore_box *box;
box = *per_cpu_ptr(pmu->box, cpu);
if (box)