mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [patch] no disk yoyo for -mm
@ 2005-07-21 19:21 Pavel Machek
  0 siblings, 0 replies; only message in thread
From: Pavel Machek @ 2005-07-21 19:21 UTC (permalink / raw)
  To: Andrew Morton, xschmi00, kernel list

From: Michal Schmidt <xschmi00@stud.feec.vutbr.cz>

The attached patch stops the disks from spinning down and up on
suspend.  The patch applies to 2.6.13-rc3-mm1 (depends on
pm_message_t being struct).

Signed-off-by: Michal Schmidt <xschmi00@stud.feec.vutbr.cz>

---
commit 3d1f9a53dcf4a73934daeb878493ed512fd78407
tree 53c0d3101fa18fbfeae3dd0a4214428319dace99
parent c21641336d5c83a41d15cdb34f18413f2b8217fd
author <pavel@amd.(none)> Thu, 21 Jul 2005 21:20:05 +0200
committer <pavel@amd.(none)> Thu, 21 Jul 2005 21:20:05 +0200

 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
--- a/drivers/ide/ide-io.c
+++ b/drivers/ide/ide-io.c
@@ -150,7 +150,7 @@ static void ide_complete_power_step(ide_
 
 	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;

-- 
teflon -- maybe it is a trademark, but it should not be.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-07-21 19:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-21 19:21 [patch] no disk yoyo for -mm Pavel Machek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®