diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2014-09-19 18:21:15 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2014-09-19 18:21:15 +0000 |
commit | 3049847412a00294a6ba23ef63f9054ed62d2cdd (patch) | |
tree | 2b9347104c6c0826219f821fe4e46f57caaa511b /sys | |
parent | 775e8666c841148b92123729fad9aa2c3af615c6 (diff) |
Use config_suspend_all(9).
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/hppa/hppa/machdep.c | 8 | ||||
-rw-r--r-- | sys/arch/hppa64/hppa64/machdep.c | 8 |
2 files changed, 4 insertions, 12 deletions
diff --git a/sys/arch/hppa/hppa/machdep.c b/sys/arch/hppa/hppa/machdep.c index 11793d2b592..7fd8c6e19d6 100644 --- a/sys/arch/hppa/hppa/machdep.c +++ b/sys/arch/hppa/hppa/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.234 2014/08/18 05:11:03 dlg Exp $ */ +/* $OpenBSD: machdep.c,v 1.235 2014/09/19 18:21:14 kettenis Exp $ */ /* * Copyright (c) 1999-2003 Michael Shalayeff @@ -889,8 +889,6 @@ int waittime = -1; __dead void boot(int howto) { - struct device *mainbus; - /* * On older systems without software power control, prevent mi code * from spinning disks off, in case the operator changes his mind @@ -929,9 +927,7 @@ boot(int howto) haltsys: doshutdownhooks(); - mainbus = device_mainbus(); - if (mainbus != NULL) - config_suspend(mainbus, DVACT_POWERDOWN); + config_suspend_all(DVACT_POWERDOWN); #ifdef MULTIPROCESSOR hppa_ipi_broadcast(HPPA_IPI_HALT); diff --git a/sys/arch/hppa64/hppa64/machdep.c b/sys/arch/hppa64/hppa64/machdep.c index 79a7d228c4a..7eb043828ec 100644 --- a/sys/arch/hppa64/hppa64/machdep.c +++ b/sys/arch/hppa64/hppa64/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.72 2014/08/18 05:11:03 dlg Exp $ */ +/* $OpenBSD: machdep.c,v 1.73 2014/09/19 18:21:14 kettenis Exp $ */ /* * Copyright (c) 2005 Michael Shalayeff @@ -535,8 +535,6 @@ int waittime = -1; __dead void boot(int howto) { - struct device *mainbus; - /* * On older systems without software power control, prevent mi code * from spinning disks off, in case the operator changes his mind @@ -575,9 +573,7 @@ boot(int howto) haltsys: doshutdownhooks(); - mainbus = device_mainbus(); - if (mainbus != NULL) - config_suspend(mainbus, DVACT_POWERDOWN); + config_suspend_all(DVACT_POWERDOWN); /* in case we came on powerfail interrupt */ if (cold_hook) |