Module Name: src
Committed By: kiyohara
Date: Tue Oct 4 15:12:29 UTC 2016
Modified Files:
src/sys/arch/arm/cortex: a9wdt.c
Log Message:
Register sysmon_wdog.
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/arm/cortex/a9wdt.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/arch/arm/cortex/a9wdt.c
diff -u src/sys/arch/arm/cortex/a9wdt.c:1.4 src/sys/arch/arm/cortex/a9wdt.c:1.5
--- src/sys/arch/arm/cortex/a9wdt.c:1.4 Wed Mar 4 23:18:21 2015
+++ src/sys/arch/arm/cortex/a9wdt.c Tue Oct 4 15:12:29 2016
@@ -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 @@ a9wdt_attach(device_t parent, device_t s
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));
}