Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/cortex Register sysmon_wdog.



details:   https://anonhg.NetBSD.org/src/rev/29d89e57183b
branches:  trunk
changeset: 348103:29d89e57183b
user:      kiyohara <kiyohara%NetBSD.org@localhost>
date:      Tue Oct 04 15:12:29 2016 +0000

description:
Register sysmon_wdog.

diffstat:

 sys/arch/arm/cortex/a9wdt.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 10cd418a948c -r 29d89e57183b sys/arch/arm/cortex/a9wdt.c
--- a/sys/arch/arm/cortex/a9wdt.c       Tue Oct 04 15:09:03 2016 +0000
+++ b/sys/arch/arm/cortex/a9wdt.c       Tue Oct 04 15:12:29 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: a9wdt.c,v 1.4 2015/03/04 23:18:21 jmcneill Exp $       */
+/*     $NetBSD: a9wdt.c,v 1.5 2016/10/04 15:12:29 kiyohara Exp $       */
 
 /*-
  * Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: a9wdt.c,v 1.4 2015/03/04 23:18:21 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: a9wdt.c,v 1.5 2016/10/04 15:12:29 kiyohara Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -253,4 +253,8 @@
                        aprint_error_dev(self,
                            "failed to start kernel tickler: %d\n", error);
        }
+
+       if (sysmon_wdog_register(&sc->sc_smw) != 0)
+               aprint_error("%s: unable to register with sysmon\n",
+                   device_xname(sc->sc_dev));
 }



Home | Main Index | Thread Index | Old Index