summaryrefslogtreecommitdiffstats
path: root/arch/sparc/kernel/nmi.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2012-08-17 08:26:01 +0200
committerDavid S. Miller <davem@davemloft.net>2012-08-19 08:26:18 +0200
commit73a6b0538c131d489fe7a2581deddb72faca496b (patch)
tree3d74b564d96900134d168eff200f802970fb7d70 /arch/sparc/kernel/nmi.c
parentsparc64: Abstract away PIC register accesses. (diff)
downloadlinux-73a6b0538c131d489fe7a2581deddb72faca496b.tar.xz
linux-73a6b0538c131d489fe7a2581deddb72faca496b.zip
sparc64: Abstract away the NMI PIC counter computation.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/kernel/nmi.c')
-rw-r--r--arch/sparc/kernel/nmi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/sparc/kernel/nmi.c b/arch/sparc/kernel/nmi.c
index ef22b9bacf1d..4c45158d4c88 100644
--- a/arch/sparc/kernel/nmi.c
+++ b/arch/sparc/kernel/nmi.c
@@ -125,7 +125,7 @@ notrace __kprobes void perfctr_irq(int irq, struct pt_regs *regs)
__this_cpu_write(alert_counter, 0);
}
if (__get_cpu_var(wd_enabled)) {
- pcr_ops->write_pic(0, picl_value(nmi_hz));
+ pcr_ops->write_pic(0, pcr_ops->nmi_picl_value(nmi_hz));
pcr_ops->write_pcr(0, pcr_enable);
}
@@ -223,7 +223,7 @@ void start_nmi_watchdog(void *unused)
atomic_inc(&nmi_active);
pcr_ops->write_pcr(0, PCR_PIC_PRIV);
- pcr_ops->write_pic(0, picl_value(nmi_hz));
+ pcr_ops->write_pic(0, pcr_ops->nmi_picl_value(nmi_hz));
pcr_ops->write_pcr(0, pcr_enable);
}
@@ -234,7 +234,7 @@ static void nmi_adjust_hz_one(void *unused)
return;
pcr_ops->write_pcr(0, PCR_PIC_PRIV);
- pcr_ops->write_pic(0, picl_value(nmi_hz));
+ pcr_ops->write_pic(0, pcr_ops->nmi_picl_value(nmi_hz));
pcr_ops->write_pcr(0, pcr_enable);
}