Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Remove a commented out include and clarify a com...



details:   https://anonhg.NetBSD.org/src/rev/5a403df3a8ad
branches:  trunk
changeset: 768554:5a403df3a8ad
user:      mbalmer <mbalmer%NetBSD.org@localhost>
date:      Sat Aug 20 07:32:34 2011 +0000

description:
Remove a commented out include and clarify a comment why the timeout
period is ignored.

diffstat:

 sys/dev/pci/pwdog.c |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (30 lines):

diff -r 827a08046f20 -r 5a403df3a8ad sys/dev/pci/pwdog.c
--- a/sys/dev/pci/pwdog.c       Sat Aug 20 06:00:14 2011 +0000
+++ b/sys/dev/pci/pwdog.c       Sat Aug 20 07:32:34 2011 +0000
@@ -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;



Home | Main Index | Thread Index | Old Index