diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2014-09-20 09:28:26 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2014-09-20 09:28:26 +0000 |
commit | 0411143cd661f91b47c9954540de13edb2010671 (patch) | |
tree | 38691f10b2184fb53c78d5d90d5db27d1217d90d /sys/arch/aviion | |
parent | 05688749de1dec0d8e6f90001a2baabb9ee086e1 (diff) |
Use config_suspend_all(9).
ok mpi@, uebayasi@, dlg@
Diffstat (limited to 'sys/arch/aviion')
-rw-r--r-- | sys/arch/aviion/aviion/machdep.c | 8 |
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"); |