diff options
-rw-r--r-- | arch/x86/kernel/cpu/perf_event_p4.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/kernel/cpu/perf_event_p4.c b/arch/x86/kernel/cpu/perf_event_p4.c index 381f593e8297..ef861da1c8ab 100644 --- a/arch/x86/kernel/cpu/perf_event_p4.c +++ b/arch/x86/kernel/cpu/perf_event_p4.c | |||
@@ -365,8 +365,10 @@ static int p4_pmu_handle_irq(struct pt_regs *regs) | |||
365 | } | 365 | } |
366 | 366 | ||
367 | if (handled) { | 367 | if (handled) { |
368 | #ifdef CONFIG_X86_LOCAL_APIC | ||
368 | /* p4 quirk: unmask it again */ | 369 | /* p4 quirk: unmask it again */ |
369 | apic_write(APIC_LVTPC, apic_read(APIC_LVTPC) & ~APIC_LVT_MASKED); | 370 | apic_write(APIC_LVTPC, apic_read(APIC_LVTPC) & ~APIC_LVT_MASKED); |
371 | #endif | ||
370 | inc_irq_stat(apic_perf_irqs); | 372 | inc_irq_stat(apic_perf_irqs); |
371 | } | 373 | } |
372 | 374 | ||