diff options
author | Cyrill Gorcunov <gorcunov@openvz.org> | 2010-05-18 17:19:18 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2010-05-19 03:41:05 -0400 |
commit | 9d36dfcf219e2ba1f1d169a7f92dcf2cbd4e05f0 (patch) | |
tree | a8f4f8478e95f1a8359d99192662a038d5720500 /arch/x86 | |
parent | 623aab896ee1a532cb540bcf0d5ae8a88275afd5 (diff) |
perf, x86: P4_pmu_schedule_events -- use smp_processor_id instead of raw_
This snippet somehow escaped the commit:
| commit 137351e0feeb9f25d99488ee1afc1c79f5499a9a
| Author: Cyrill Gorcunov <gorcunov@openvz.org>
| Date: Sat May 8 15:25:52 2010 +0400
|
| x86, perf: P4 PMU -- protect sensible procedures from preemption
so bring it eventually back. It helps to catch
preemption issue (if there will be, rule of thumb --
don't use raw_ if you can).
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Cc: Lin Ming <ming.m.lin@intel.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
LKML-Reference: <20100518212439.167259349@openvz.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/kernel/cpu/perf_event_p4.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/cpu/perf_event_p4.c b/arch/x86/kernel/cpu/perf_event_p4.c index 5f8e36d62793..ae85d69644d1 100644 --- a/arch/x86/kernel/cpu/perf_event_p4.c +++ b/arch/x86/kernel/cpu/perf_event_p4.c | |||
@@ -763,7 +763,7 @@ static int p4_pmu_schedule_events(struct cpu_hw_events *cpuc, int n, int *assign | |||
763 | { | 763 | { |
764 | unsigned long used_mask[BITS_TO_LONGS(X86_PMC_IDX_MAX)]; | 764 | unsigned long used_mask[BITS_TO_LONGS(X86_PMC_IDX_MAX)]; |
765 | unsigned long escr_mask[BITS_TO_LONGS(P4_ESCR_MSR_TABLE_SIZE)]; | 765 | unsigned long escr_mask[BITS_TO_LONGS(P4_ESCR_MSR_TABLE_SIZE)]; |
766 | int cpu = raw_smp_processor_id(); | 766 | int cpu = smp_processor_id(); |
767 | struct hw_perf_event *hwc; | 767 | struct hw_perf_event *hwc; |
768 | struct p4_event_bind *bind; | 768 | struct p4_event_bind *bind; |
769 | unsigned int i, thread, num; | 769 | unsigned int i, thread, num; |