lkml.org 
[lkml]   [2004]   [Jan]   [22]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateWed, 21 Jan 2004 23:49:56 -0800
FromAndrew Morton <>
SubjectRe: PATCH: Shutdown IDE before powering off.
Nigel Cunningham <ncunningham@users.sourceforge.net> wrote:
>
> +static void ide_drive_shutdown (struct device * dev)
>  +{
>  +	generic_ide_suspend(dev, 5);
>  +}
>  +
>   int ide_register_driver(ide_driver_t *driver)
>   {
>   	struct list_head list;
>  @@ -2519,6 +2524,7 @@
>   	driver->gen_driver.name = (char *) driver->name;
>   	driver->gen_driver.bus = &ide_bus_type;
>   	driver->gen_driver.remove = ide_drive_remove;
>  +	driver->gen_driver.shutdown = ide_drive_shutdown;

This spins down the disk(s) when you're just doing do a reboot.  That's
fairly irritating and could affect reboot times if one has many disks.


-
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 13:00    [W:0.221 / U:0.030 seconds]
©2003-2008 Jasper Spaans