Commit cc3bc0b5 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] ide-disk.c: don't put disks in STANDBY mode on reboot

From: Bartlomiej Zolnierkiewicz <B.Zolnierkiewicz@elka.pw.edu.pl>

From: Rene Herman <rene.herman@keyaccess.nl>

Prevent the disks from spinning down across a reboot.
parent ba44b066
......@@ -1723,6 +1723,11 @@ static void ide_device_shutdown(struct device *dev)
{
ide_drive_t *drive = container_of(dev, ide_drive_t, gendev);
if (system_state == SYSTEM_RESTART) {
ide_cacheflush_p(drive);
return;
}
printk("Shutdown: %s\n", drive->name);
dev->bus->suspend(dev, PM_SUSPEND_STANDBY);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment