aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/cpu/perf_event_p4.c
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@openvz.org>2010-03-17 06:37:01 -0400
committerIngo Molnar <mingo@elte.hu>2010-03-18 12:03:22 -0400
commit7335f75e9ca166044e38a96abad422d8e6e364b5 (patch)
treeecd34b9a8de260a7863e47bb4fa18e492d1722fe /arch/x86/kernel/cpu/perf_event_p4.c
parentd674cd1963129b70bc5f631c51fb30fb73213fb2 (diff)
x86, perf: Use apic_write unconditionally
Since apic_write() maps to a plain noop in the !CONFIG_X86_LOCAL_APIC case we're safe to remove this conditional compilation and clean up the code a bit. Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Cc: fweisbec@gmail.com Cc: acme@redhat.com Cc: eranian@google.com Cc: peterz@infradead.org LKML-Reference: <20100317104356.232371479@openvz.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/cpu/perf_event_p4.c')
-rw-r--r--arch/x86/kernel/cpu/perf_event_p4.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/x86/kernel/cpu/perf_event_p4.c b/arch/x86/kernel/cpu/perf_event_p4.c
index a11ce73a93c..0367889b4ae 100644
--- a/arch/x86/kernel/cpu/perf_event_p4.c
+++ b/arch/x86/kernel/cpu/perf_event_p4.c
@@ -363,10 +363,8 @@ static int p4_pmu_handle_irq(struct pt_regs *regs)
363 } 363 }
364 364
365 if (handled) { 365 if (handled) {
366#ifdef CONFIG_X86_LOCAL_APIC
367 /* p4 quirk: unmask it again */ 366 /* p4 quirk: unmask it again */
368 apic_write(APIC_LVTPC, apic_read(APIC_LVTPC) & ~APIC_LVT_MASKED); 367 apic_write(APIC_LVTPC, apic_read(APIC_LVTPC) & ~APIC_LVT_MASKED);
369#endif
370 inc_irq_stat(apic_perf_irqs); 368 inc_irq_stat(apic_perf_irqs);
371 } 369 }
372 370