diff options
-rw-r--r-- | sys/arch/armish/armish/armish_machdep.c | 4 | ||||
-rw-r--r-- | sys/arch/armv7/imx/imx_machdep.c | 4 | ||||
-rw-r--r-- | sys/arch/armv7/omap/beagle_machdep.c | 6 | ||||
-rw-r--r-- | sys/arch/zaurus/zaurus/zaurus_machdep.c | 4 |
4 files changed, 14 insertions, 4 deletions
diff --git a/sys/arch/armish/armish/armish_machdep.c b/sys/arch/armish/armish/armish_machdep.c index 6c4c0afb8b3..73cf99500d5 100644 --- a/sys/arch/armish/armish/armish_machdep.c +++ b/sys/arch/armish/armish/armish_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: armish_machdep.c,v 1.18 2011/10/19 20:18:31 drahn Exp $ */ +/* $OpenBSD: armish_machdep.c,v 1.19 2013/09/28 14:16:41 miod Exp $ */ /* $NetBSD: lubbock_machdep.c,v 1.2 2003/07/15 00:25:06 lukem Exp $ */ /* @@ -275,6 +275,8 @@ boot(int howto) haltsys: doshutdownhooks(); + if (!TAILQ_EMPTY(&alldevs)) + config_suspend(TAILQ_FIRST(&alldevs), DVACT_POWERDOWN); /* Make sure IRQ's are disabled */ IRQdisable; diff --git a/sys/arch/armv7/imx/imx_machdep.c b/sys/arch/armv7/imx/imx_machdep.c index 537bb9930ab..80fc27ebe60 100644 --- a/sys/arch/armv7/imx/imx_machdep.c +++ b/sys/arch/armv7/imx/imx_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: imx_machdep.c,v 1.2 2013/09/28 12:40:28 miod Exp $ */ +/* $OpenBSD: imx_machdep.c,v 1.3 2013/09/28 14:16:41 miod Exp $ */ /* $NetBSD: lubbock_machdep.c,v 1.2 2003/07/15 00:25:06 lukem Exp $ */ /* @@ -301,6 +301,8 @@ boot(int howto) */ if (cold) { doshutdownhooks(); + if (!TAILQ_EMPTY(&alldevs)) + config_suspend(TAILQ_FIRST(&alldevs), DVACT_POWERDOWN); if ((howto & (RB_HALT | RB_USERREQ)) != RB_USERREQ) { printf("The operating system has halted.\n"); printf("Please press any key to reboot.\n\n"); diff --git a/sys/arch/armv7/omap/beagle_machdep.c b/sys/arch/armv7/omap/beagle_machdep.c index a48d1a62c90..55750e540bf 100644 --- a/sys/arch/armv7/omap/beagle_machdep.c +++ b/sys/arch/armv7/omap/beagle_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: beagle_machdep.c,v 1.1 2013/09/04 14:38:30 patrick Exp $ */ +/* $OpenBSD: beagle_machdep.c,v 1.2 2013/09/28 14:16:41 miod Exp $ */ /* $NetBSD: lubbock_machdep.c,v 1.2 2003/07/15 00:25:06 lukem Exp $ */ /* @@ -301,6 +301,8 @@ boot(int howto) */ if (cold) { doshutdownhooks(); + if (!TAILQ_EMPTY(&alldevs)) + config_suspend(TAILQ_FIRST(&alldevs), DVACT_POWERDOWN); if ((howto & (RB_HALT | RB_USERREQ)) != RB_USERREQ) { printf("The operating system has halted.\n"); printf("Please press any key to reboot.\n\n"); @@ -336,6 +338,8 @@ boot(int howto) /* Run any shutdown hooks */ doshutdownhooks(); + if (!TAILQ_EMPTY(&alldevs)) + config_suspend(TAILQ_FIRST(&alldevs), DVACT_POWERDOWN); /* Make sure IRQ's are disabled */ IRQdisable; diff --git a/sys/arch/zaurus/zaurus/zaurus_machdep.c b/sys/arch/zaurus/zaurus/zaurus_machdep.c index 3b547a950eb..2ccc0236ad6 100644 --- a/sys/arch/zaurus/zaurus/zaurus_machdep.c +++ b/sys/arch/zaurus/zaurus/zaurus_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: zaurus_machdep.c,v 1.39 2012/08/30 15:51:13 deraadt Exp $ */ +/* $OpenBSD: zaurus_machdep.c,v 1.40 2013/09/28 14:16:42 miod Exp $ */ /* $NetBSD: lubbock_machdep.c,v 1.2 2003/07/15 00:25:06 lukem Exp $ */ /* @@ -323,6 +323,8 @@ boot(int howto) haltsys: doshutdownhooks(); + if (!TAILQ_EMPTY(&alldevs)) + config_suspend(TAILQ_FIRST(&alldevs), DVACT_POWERDOWN); /* Make sure IRQ's are disabled */ IRQdisable; |