diff options
-rw-r--r-- | sys/arch/armv7/sunxi/sxidog.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/sys/arch/armv7/sunxi/sxidog.c b/sys/arch/armv7/sunxi/sxidog.c index 66a359f9cf5..6212e5817fc 100644 --- a/sys/arch/armv7/sunxi/sxidog.c +++ b/sys/arch/armv7/sunxi/sxidog.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sxidog.c,v 1.5 2014/12/10 12:27:56 mikeb Exp $ */ +/* $OpenBSD: sxidog.c,v 1.6 2014/12/13 00:49:20 jsg Exp $ */ /* * Copyright (c) 2007,2009 Dale Rahn <drahn@openbsd.org> * @@ -111,6 +111,20 @@ sxidog_attach(struct device *parent, struct device *self, void *args) } int +sxidog_activate(struct device *self, int act) +{ + switch (act) { + case DVACT_POWERDOWN: +#ifndef SMALL_KERNEL + wdog_shutdown(self); +#endif + break; + } + + return (0); +} + +int sxidog_callback(void *arg, int period) { struct sxidog_softc *sc = (struct sxidog_softc *)arg; |