Module Name: src Committed By: mbalmer Date: Sat Aug 20 07:32:35 UTC 2011
Modified Files: src/sys/dev/pci: pwdog.c Log Message: Remove a commented out include and clarify a comment why the timeout period is ignored. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/sys/dev/pci/pwdog.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/dev/pci/pwdog.c diff -u src/sys/dev/pci/pwdog.c:1.1 src/sys/dev/pci/pwdog.c:1.2 --- src/sys/dev/pci/pwdog.c:1.1 Thu Aug 11 07:33:24 2011 +++ src/sys/dev/pci/pwdog.c Sat Aug 20 07:32:34 2011 @@ -1,4 +1,4 @@ -/* $$NetBSD: pwdog.c,v 1.1 2011/08/11 07:33:24 mbalmer Exp $ */ +/* $$NetBSD: pwdog.c,v 1.2 2011/08/20 07:32:34 mbalmer Exp $ */ /* $OpenBSD: pwdog.c,v 1.7 2010/04/08 00:23:53 tedu Exp $ */ /* @@ -27,8 +27,6 @@ #endif #include <sys/systm.h> -/* #include <machine/bus.h> */ - #include <dev/pci/pcivar.h> #include <dev/pci/pcireg.h> #include <dev/pci/pcidevs.h> @@ -159,7 +157,10 @@ bus_space_write_1(sc->sc_iot, sc->sc_ioh, PWDOG_DISABLE, 0); break; default: - /* NB: the timer period set by the user is ignored */ + /* + * NB: the timer period set by the user is ignored + * since the period can only be set in hardware. + */ bus_space_write_1(sc->sc_iot, sc->sc_ioh, PWDOG_ACTIVATE, 0); } return 0;