summaryrefslogtreecommitdiff
path: root/sys/arch/sgi
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/sgi
parent05688749de1dec0d8e6f90001a2baabb9ee086e1 (diff)
Use config_suspend_all(9).
ok mpi@, uebayasi@, dlg@
Diffstat (limited to 'sys/arch/sgi')
-rw-r--r--sys/arch/sgi/sgi/machdep.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/arch/sgi/sgi/machdep.c b/sys/arch/sgi/sgi/machdep.c
index 71884fc5f99..6cd7ea371df 100644
--- a/sys/arch/sgi/sgi/machdep.c
+++ b/sys/arch/sgi/sgi/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.148 2014/07/21 17:25:47 uebayasi Exp $ */
+/* $OpenBSD: machdep.c,v 1.149 2014/09/20 09:28:24 kettenis Exp $ */
/*
* Copyright (c) 2003-2004 Opsycon AB (www.opsycon.se / www.opsycon.com)
@@ -829,8 +829,6 @@ int waittime = -1;
__dead void
boot(int howto)
{
- struct device *mainbus;
-
if (curproc)
savectx(curproc->p_addr, 0);
@@ -862,9 +860,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) {
if ((howto & RB_POWERDOWN) != 0)