From 46dacba52a19d1414ba249499a48382c16242d99 Mon Sep 17 00:00:00 2001 From: Michal Schmidt Date: Sat, 3 Sep 2005 15:57:01 -0700 Subject: [PATCH] swsusp: prevent disks from spinning down and up Stop the disks from spinning down and up on suspend. Signed-off-by: Michal Schmidt Cc: Pavel Machek Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- drivers/ide/ide-io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/ide/ide-io.c') 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 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; -- cgit v1.2.3