diff options
author | Michal Schmidt <xschmi00@stud.feec.vutbr.cz> | 2005-09-03 15:57:01 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@evo.osdl.org> | 2005-09-05 00:06:16 -0700 |
commit | 46dacba52a19d1414ba249499a48382c16242d99 (patch) | |
tree | 760538eb1cac1f6e7c0b4b99c0a31b282b59e467 /drivers/ide/ide-io.c | |
parent | c2ff18f4070f6303a81fd7d9d967d7c9e01b588f (diff) | |
download | op-kernel-dev-46dacba52a19d1414ba249499a48382c16242d99.zip op-kernel-dev-46dacba52a19d1414ba249499a48382c16242d99.tar.gz |
[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/ide/ide-io.c')
-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 248e3cc..f174aee 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 switch (rq->pm->pm_step) { case ide_pm_flush_cache: /* Suspend step 1 (flush cache) complete */ - if (rq->pm->pm_state == 4) + if (rq->pm->pm_state == PM_EVENT_FREEZE) rq->pm->pm_step = ide_pm_state_completed; else rq->pm->pm_step = idedisk_pm_standby; |