Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/x86/pci print the configuration information early s...



details:   https://anonhg.NetBSD.org/src/rev/7a2f798883a8
branches:  trunk
changeset: 340287:7a2f798883a8
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Aug 30 07:50:34 2015 +0000

description:
print the configuration information early so that it does not get intermingled
with possible error prints.

diffstat:

 sys/arch/x86/pci/tco.c |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (37 lines):

diff -r 7ba39af5343c -r 7a2f798883a8 sys/arch/x86/pci/tco.c
--- a/sys/arch/x86/pci/tco.c    Sun Aug 30 07:35:11 2015 +0000
+++ b/sys/arch/x86/pci/tco.c    Sun Aug 30 07:50:34 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tco.c,v 1.1 2015/05/03 02:50:59 pgoyette Exp $ */
+/*     $NetBSD: tco.c,v 1.2 2015/08/30 07:50:34 christos Exp $ */
 
 /*-
  * Copyright (c) 2015 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tco.c,v 1.1 2015/05/03 02:50:59 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tco.c,v 1.2 2015/08/30 07:50:34 christos Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -112,6 +112,9 @@
        sc->sc_pcib = ta->ta_pcib;
        sc->sc_has_rcba = ta->ta_has_rcba;
 
+       aprint_normal(": TCO (watchdog) timer configured.\n");
+       aprint_naive("\n");
+
        /* Explicitly stop the TCO timer. */
        tcotimer_stop(sc);
 
@@ -160,8 +163,6 @@
        }
        sc->sc_smw.smw_period = lpcib_tcotimer_tick_to_second(sc->sc_max_t);
 
-       aprint_normal(": TCO (watchdog) timer configured.\n");
-       aprint_naive("\n");
        aprint_verbose_dev(self, "Min/Max interval %u/%u seconds\n",
                lpcib_tcotimer_tick_to_second(sc->sc_min_t),
                lpcib_tcotimer_tick_to_second(sc->sc_max_t));



Home | Main Index | Thread Index | Old Index