summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_shutdown.c
diff options
context:
space:
mode:
authorbrucec <brucec@FreeBSD.org>2010-10-24 16:31:57 +0000
committerbrucec <brucec@FreeBSD.org>2010-10-24 16:31:57 +0000
commit41dcd4566c627593cdaa04a32255183275a4ea8a (patch)
tree4019b8189051d088b2d67a8077bdfb792575305d /sys/kern/kern_shutdown.c
parentd5b2b0a30ff2f9f2c524005c77d18d36f4c37565 (diff)
downloadFreeBSD-src-41dcd4566c627593cdaa04a32255183275a4ea8a.zip
FreeBSD-src-41dcd4566c627593cdaa04a32255183275a4ea8a.tar.gz
Mostly revert r203420, and add similar functionality into ada(4) since the
existing code caused problems with some SCSI controllers. A new sysctl kern.cam.ada.spindown_shutdown has been added that controls whether or not to spin-down disks when shutting down. Spinning down the disks unloads/parks the heads - this is much better than removing power when the disk is still spinning because otherwise an Emergency Unload occurs which may cause damage to the actuator. PR: kern/140752 Submitted by: olli Reviewed by: arundel Discussed with: mav MFC after: 2 weeks
Diffstat (limited to 'sys/kern/kern_shutdown.c')
-rw-r--r--sys/kern/kern_shutdown.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_shutdown.c b/sys/kern/kern_shutdown.c
index c20a1c6..9553a3a 100644
--- a/sys/kern/kern_shutdown.c
+++ b/sys/kern/kern_shutdown.c
@@ -144,7 +144,7 @@ shutdown_conf(void *unused)
{
EVENTHANDLER_REGISTER(shutdown_final, poweroff_wait, NULL,
- SHUTDOWN_PRI_FIRST + 100);
+ SHUTDOWN_PRI_FIRST);
EVENTHANDLER_REGISTER(shutdown_final, shutdown_halt, NULL,
SHUTDOWN_PRI_LAST + 100);
EVENTHANDLER_REGISTER(shutdown_final, shutdown_panic, NULL,
OpenPOWER on IntegriCloud