Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/mips/cavium Typo in #ifdef - the per cpu wdog softi...
details: https://anonhg.NetBSD.org/src/rev/8dba848c97cd
branches: trunk
changeset: 347244:8dba848c97cd
user: martin <martin%NetBSD.org@localhost>
date: Fri Aug 19 07:51:29 2016 +0000
description:
Typo in #ifdef - the per cpu wdog softint wasn't initialized.
diffstat:
sys/arch/mips/cavium/octeon_cpunode.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (21 lines):
diff -r 5654a975fb91 -r 8dba848c97cd sys/arch/mips/cavium/octeon_cpunode.c
--- a/sys/arch/mips/cavium/octeon_cpunode.c Fri Aug 19 05:11:09 2016 +0000
+++ b/sys/arch/mips/cavium/octeon_cpunode.c Fri Aug 19 07:51:29 2016 +0000
@@ -82,6 +82,8 @@
void octeon_reset_vector(void);
+static void wdog_cpunode_poke(void *arg);
+
static int
cpunode_mainbus_print(void *aux, const char *pnp)
{
@@ -258,7 +260,7 @@
ci->ci_nmi_stack = (void *)(kva + PAGE_SIZE - sizeof(struct kernframe));
#endif
-#ifdef WDOG
+#if NWDOG > 0
cpu->cpu_wdog_sih = softint_establish(SOFTINT_CLOCK|SOFTINT_MPSAFE,
wdog_cpunode_poke, cpu);
KASSERT(cpu->cpu_wdog_sih != NULL);
Home |
Main Index |
Thread Index |
Old Index