Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 147211
b: refs/heads/master
c: 82aa9a1
h: refs/heads/master
i:
  147209: ddb60ee
  147207: c24fd6d
v: v3
  • Loading branch information
Ingo Molnar committed Feb 5, 2009
1 parent 85715d0 commit aba787a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5b75af0a02fcf3b8899f38ff6f22164c5d8e2fdd
refs/heads/master: 82aa9a1829199233f9bdaf26e2ee271114f4701e
8 changes: 8 additions & 0 deletions trunk/arch/x86/oprofile/op_model_ppro.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,13 @@ static int ppro_check_ctrs(struct pt_regs * const regs,
u64 val;
int i;

/*
* This can happen if perf counters are in use when
* we steal the die notifier NMI.
*/
if (unlikely(!reset_value))
goto out;

for (i = 0 ; i < num_counters; ++i) {
if (!reset_value[i])
continue;
Expand All @@ -136,6 +143,7 @@ static int ppro_check_ctrs(struct pt_regs * const regs,
}
}

out:
/* Only P6 based Pentium M need to re-unmask the apic vector but it
* doesn't hurt other P6 variant */
apic_write(APIC_LVTPC, apic_read(APIC_LVTPC) & ~APIC_LVT_MASKED);
Expand Down

0 comments on commit aba787a

Please sign in to comment.