Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 191118
b: refs/heads/master
c: 7335f75
h: refs/heads/master
v: v3
  • Loading branch information
Cyrill Gorcunov authored and Ingo Molnar committed Mar 18, 2010
1 parent b23e78b commit fdb9f5f
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d674cd1963129b70bc5f631c51fb30fb73213fb2
refs/heads/master: 7335f75e9ca166044e38a96abad422d8e6e364b5
4 changes: 0 additions & 4 deletions trunk/arch/x86/kernel/cpu/perf_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -1136,15 +1136,13 @@ void set_perf_event_pending(void)

void perf_events_lapic_init(void)
{
#ifdef CONFIG_X86_LOCAL_APIC
if (!x86_pmu.apic || !x86_pmu_initialized())
return;

/*
* Always use NMI for PMU
*/
apic_write(APIC_LVTPC, APIC_DM_NMI);
#endif
}

static int __kprobes
Expand All @@ -1168,9 +1166,7 @@ perf_event_nmi_handler(struct notifier_block *self,

regs = args->regs;

#ifdef CONFIG_X86_LOCAL_APIC
apic_write(APIC_LVTPC, APIC_DM_NMI);
#endif
/*
* Can't rely on the handled return value to say it was our NMI, two
* events could trigger 'simultaneously' raising two back-to-back NMIs.
Expand Down
2 changes: 0 additions & 2 deletions trunk/arch/x86/kernel/cpu/perf_event_p4.c
Original file line number Diff line number Diff line change
Expand Up @@ -363,10 +363,8 @@ static int p4_pmu_handle_irq(struct pt_regs *regs)
}

if (handled) {
#ifdef CONFIG_X86_LOCAL_APIC
/* p4 quirk: unmask it again */
apic_write(APIC_LVTPC, apic_read(APIC_LVTPC) & ~APIC_LVT_MASKED);
#endif
inc_irq_stat(apic_perf_irqs);
}

Expand Down

0 comments on commit fdb9f5f

Please sign in to comment.