Skip to content

Commit

Permalink
perf_counters: account NMI interrupts
Browse files Browse the repository at this point in the history
I noticed that kerneltop interrupts were accounted as NMI, but not their
perf counter origin.

Account NMI performance counter interrupts.

Signed-off-by: Mike Galbraith  <efault@gmx.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>

 arch/x86/kernel/cpu/perf_counter.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  • Loading branch information
Mike Galbraith authored and Ingo Molnar committed Feb 9, 2009
1 parent 23a185c commit d278c48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/kernel/cpu/perf_counter.c
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,7 @@ static void __smp_perf_counter_interrupt(struct pt_regs *regs, int nmi)
goto out;

again:
inc_irq_stat(apic_perf_irqs);
ack = status;
for_each_bit(bit, (unsigned long *)&status, X86_PMC_IDX_MAX) {
struct perf_counter *counter = cpuc->counters[bit];
Expand Down Expand Up @@ -570,7 +571,6 @@ void perf_counter_unthrottle(void)
void smp_perf_counter_interrupt(struct pt_regs *regs)
{
irq_enter();
inc_irq_stat(apic_perf_irqs);
apic_write(APIC_LVTPC, LOCAL_PERF_VECTOR);
__smp_perf_counter_interrupt(regs, 0);

Expand Down

0 comments on commit d278c48

Please sign in to comment.