diff options
author | Michal Schmidt <xschmi00@stud.feec.vutbr.cz> | 2005-09-03 18:57:01 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@evo.osdl.org> | 2005-09-05 03:06:16 -0400 |
commit | 46dacba52a19d1414ba249499a48382c16242d99 (patch) | |
tree | 760538eb1cac1f6e7c0b4b99c0a31b282b59e467 /drivers | |
parent | c2ff18f4070f6303a81fd7d9d967d7c9e01b588f (diff) |
[PATCH] swsusp: prevent disks from spinning down and up
Stop the disks from spinning down and up on suspend.
Signed-off-by: Michal Schmidt <xschmi00@stud.feec.vutbr.cz>
Cc: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/ide/ide-io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ide/ide-io.c b/drivers/ide/ide-io.c index 248e3cc8b352..f174aee659e5 100644 --- a/drivers/ide/ide-io.c +++ b/drivers/ide/ide-io.c | |||
@@ -150,7 +150,7 @@ static void ide_complete_power_step(ide_drive_t *drive, struct request *rq, u8 s | |||
150 | 150 | ||
151 | switch (rq->pm->pm_step) { | 151 | switch (rq->pm->pm_step) { |
152 | case ide_pm_flush_cache: /* Suspend step 1 (flush cache) complete */ | 152 | case ide_pm_flush_cache: /* Suspend step 1 (flush cache) complete */ |
153 | if (rq->pm->pm_state == 4) | 153 | if (rq->pm->pm_state == PM_EVENT_FREEZE) |
154 | rq->pm->pm_step = ide_pm_state_completed; | 154 | rq->pm->pm_step = ide_pm_state_completed; |
155 | else | 155 | else |
156 | rq->pm->pm_step = idedisk_pm_standby; | 156 | rq->pm->pm_step = idedisk_pm_standby; |