lkml.org 
[lkml]   [2004]   [Sep]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: prevent hdd spin-down at system halt
Alan Cox <alan@lxorguk.ukuu.org.uk> 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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:05    [W:0.162 / U:0.380 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site