Re: WatchDog Driver Updates

From: Zwane Mwaikambo (zwane@linux.realnet.co.sz)
Date: Sun Apr 07 2002 - 04:15:43 EST


static int sc1200wdt_release(struct inode *inode, struct file *file)
 {
-#ifndef CONFIG_WATCHDOG_NOWAYOUT
         if (expect_close) {
                 sc1200wdt_write_data(WDTO, 0);
                 printk(KERN_INFO PFX "Watchdog disabled\n");
@@ -202,7 +197,6 @@
                 sc1200wdt_write_data(WDTO, timeout);
                 printk(KERN_CRIT PFX "Unexpected close!, timeout = %d
min(s)\n", timeout);
         }
-#endif

hmm, that would allow closing of the watchdog even if
CONFIG_WATCHDOG_NOWAYOUT is specified. Was this your intention?

        Zwane

-- 
http://function.linuxpower.ca
		

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Apr 07 2002 - 22:00:20 EST