summaryrefslogtreecommitdiff
path: root/sys/arch/aviion
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2014-09-20 09:28:26 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2014-09-20 09:28:26 +0000
commit0411143cd661f91b47c9954540de13edb2010671 (patch)
tree38691f10b2184fb53c78d5d90d5db27d1217d90d /sys/arch/aviion
parent05688749de1dec0d8e6f90001a2baabb9ee086e1 (diff)
Use config_suspend_all(9).
ok mpi@, uebayasi@, dlg@
Diffstat (limited to 'sys/arch/aviion')
-rw-r--r--sys/arch/aviion/aviion/machdep.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/arch/aviion/aviion/machdep.c b/sys/arch/aviion/aviion/machdep.c
index 8735ca2fe32..4073c657285 100644
--- a/sys/arch/aviion/aviion/machdep.c
+++ b/sys/arch/aviion/aviion/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.71 2014/07/21 17:25:47 uebayasi Exp $ */
+/* $OpenBSD: machdep.c,v 1.72 2014/09/20 09:28:24 kettenis Exp $ */
/*
* Copyright (c) 2007 Miodrag Vallat.
*
@@ -294,8 +294,6 @@ doboot()
__dead void
boot(int howto)
{
- struct device *mainbus;
-
if (curproc && curproc->p_addr)
savectx(curpcb);
@@ -326,9 +324,7 @@ boot(int howto)
haltsys:
doshutdownhooks();
- mainbus = device_mainbus();
- if (mainbus != NULL)
- config_suspend(mainbus, DVACT_POWERDOWN);
+ config_suspend_all(DVACT_POWERDOWN);
if ((howto & RB_HALT) != 0) {
printf("System halted.\n\n");