sparc64: Fix NMI programming when perf events are active.
If perf events are active, we should not reset the %pcr to PCR_PIC_PRIV. That perf events code does the management. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
5958eed76c
commit
8183e2b384
1 changed files with 2 additions and 1 deletions
|
@ -96,7 +96,6 @@ notrace __kprobes void perfctr_irq(int irq, struct pt_regs *regs)
|
||||||
int cpu = smp_processor_id();
|
int cpu = smp_processor_id();
|
||||||
|
|
||||||
clear_softint(1 << irq);
|
clear_softint(1 << irq);
|
||||||
pcr_ops->write(PCR_PIC_PRIV);
|
|
||||||
|
|
||||||
local_cpu_data().__nmi_count++;
|
local_cpu_data().__nmi_count++;
|
||||||
|
|
||||||
|
@ -105,6 +104,8 @@ notrace __kprobes void perfctr_irq(int irq, struct pt_regs *regs)
|
||||||
if (notify_die(DIE_NMI, "nmi", regs, 0,
|
if (notify_die(DIE_NMI, "nmi", regs, 0,
|
||||||
pt_regs_trap_type(regs), SIGINT) == NOTIFY_STOP)
|
pt_regs_trap_type(regs), SIGINT) == NOTIFY_STOP)
|
||||||
touched = 1;
|
touched = 1;
|
||||||
|
else
|
||||||
|
pcr_ops->write(PCR_PIC_PRIV);
|
||||||
|
|
||||||
sum = kstat_irqs_cpu(0, cpu);
|
sum = kstat_irqs_cpu(0, cpu);
|
||||||
if (__get_cpu_var(nmi_touch)) {
|
if (__get_cpu_var(nmi_touch)) {
|
||||||
|
|
Loading…
Reference in a new issue