tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/sys/kern



On Thu, Feb 21, 2008 at 06:54:29PM +0100, Manuel Bouyer wrote:
> On Thu, Feb 21, 2008 at 11:19:15AM -0600, David Young wrote:
> > I happen to agree that suspending devices at shutdown is wrong.  Joerg and
> > I had some productive discussions on the topic over on tech-kern@, and I
> > have been testing code in the mean time that detaches devices at shutdown,
> > instead of suspending them.
> 
> Some of them have to be suspended on some cases. E.g. hard disks:
> you don't want to spin them down on reboot or shutdown -h (because
> this will most likely ends up in a gratuicious spin down/up cycle),
> but you do want to spin them down on shutdown -p, because some hardware
> (some models of powerboot at last, there was a PR about this) don't
> properly stop the drive before removing power otherwise.

We can distinguish the powerdown case with a new DETACH_ flag.  Do you
mean Powerbook?

Dave

-- 
David Young             OJC Technologies
dyoung%ojctech.com@localhost      Urbana, IL * (217) 278-3933 ext 24


Home | Main Index | Thread Index | Old Index