Module Name:    src
Committed By:   martin
Date:           Fri Aug 19 07:51:29 UTC 2016

Modified Files:
        src/sys/arch/mips/cavium: octeon_cpunode.c

Log Message:
Typo in #ifdef - the per cpu wdog softint wasn't initialized.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/arch/mips/cavium/octeon_cpunode.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/mips/cavium/octeon_cpunode.c
diff -u src/sys/arch/mips/cavium/octeon_cpunode.c:1.7 src/sys/arch/mips/cavium/octeon_cpunode.c:1.8
--- src/sys/arch/mips/cavium/octeon_cpunode.c:1.7	Mon Jul 11 16:15:35 2016
+++ src/sys/arch/mips/cavium/octeon_cpunode.c	Fri Aug 19 07:51:29 2016
@@ -82,6 +82,8 @@ kcpuset_t *cpus_booted;
 
 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 @@ cpu_cpunode_attach_common(device_t self,
 	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);

Reply via email to