watchdog vs reboot

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
When building the indy watchdog kernel module using 
"Disable watchdog shutdown on close" the watchdog 
does not get turned off at all, so we have to do this 
"immediately" after reboot. Attached patch does this.
 -- Guido
--- arch/mips/sgi/kernel/indy_mc.c.orig	Sat Apr 21 22:24:59 2001
+++ arch/mips/sgi/kernel/indy_mc.c	Sat Apr 21 22:29:01 2001
@@ -84,6 +84,14 @@
 	 * interrupts are first enabled etc.
 	 */
 
+	/* Step 0: Make sure we turn of the watchdog in case it's
+	 *         still running(which might be the case after a
+	 *         soft reboot).
+	 */
+	tmpreg = mcmisc_regs->cpuctrl0; 
+	tmpreg &= ~SGIMC_CCTRL0_WDOG;
+	mcmisc_regs->cpuctrl0 = tmpreg;
+
 	/* Step 1: The CPU/GIO error status registers will not latch
 	 *         up a new error status until the register has been
 	 *         cleared by the cpu.  These status registers are

[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux