Re: prevent hdd spin-down at system halt

From: Andrew Morton
Date: Thu Sep 02 2004 - 00:49:52 EST


Alan Cox <alan@xxxxxxxxxxxxxxxxxxx> wrote:
>
> On Mer, 2004-09-01 at 11:01, Dirk Jagdmann wrote:
> > is it possible to disable the spin-down (or powerdown) of hard disks
> > when halting the system, via the kernel cmd-line or some
> > configurations in /proc?
>
> If someone provides the shutdown infrastructure to determine the
> difference between shutdown/poweroff/return-to-firmware its easy. IDE
> already has an ifdef to handle this on Alpha SRM because the higher
> levels don't provide the ideal information.
>

People are using the system_state global for this. I guess this will suit
until it breaks, and we end up doing something else.

See sys_reboot().
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/