Sleeps hard disk just before system shutdown.

Some hardware (eg: Apple iBooks) don't do this automatically
and the harddisk behaves as if the power plug were pulled.

Closes PR: kern/32766
This commit is contained in:
cherry 2006-04-04 07:11:45 +00:00
parent da9647bfba
commit fb6529c627
1 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: wd.c,v 1.321 2006/03/28 17:38:29 thorpej Exp $ */
/* $NetBSD: wd.c,v 1.322 2006/04/04 07:11:45 cherry Exp $ */
/*
* Copyright (c) 1998, 2001 Manuel Bouyer. All rights reserved.
@ -66,7 +66,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: wd.c,v 1.321 2006/03/28 17:38:29 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: wd.c,v 1.322 2006/04/04 07:11:45 cherry Exp $");
#ifndef ATADEBUG
#define ATADEBUG
@ -1833,6 +1833,7 @@ wd_shutdown(void *arg)
{
struct wd_softc *wd = arg;
wd_flushcache(wd, AT_POLL);
wd_standby(wd, AT_POLL);
}
/*