summaryrefslogtreecommitdiff
path: root/sys/arch/armish
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2013-09-28 14:16:43 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2013-09-28 14:16:43 +0000
commit493141d5de8b4ad32b33a8f64a2a28de3e6adaa0 (patch)
tree84967daf40df7f5376679affc12b5bda5c5a36da /sys/arch/armish
parent9d0b6e4d1849d20ef6be39de8bc95ba37cdd8474 (diff)
A few missing config_suspend(, DVACT_POWERDOWN) constructs after
doshutdownhooks() calls. XXX arm-based ports ought to really share their reboot code.
Diffstat (limited to 'sys/arch/armish')
-rw-r--r--sys/arch/armish/armish/armish_machdep.c4
1 files changed, 3 insertions, 1 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;