From: Pavel Machek <pavel@ucw.cz>
To: Andrew Morton <akpm@zip.com.au>,
xschmi00@stud.feec.vutbr.cz,
kernel list <linux-kernel@vger.kernel.org>
Subject: [patch] no disk yoyo for -mm
Date: Thu, 21 Jul 2005 21:21:43 +0200 [thread overview]
Message-ID: <20050721192143.GA5917@elf.ucw.cz> (raw)
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.
reply other threads:[~2005-07-21 19:21 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050721192143.GA5917@elf.ucw.cz \
--to=pavel@ucw.cz \
--cc=akpm@zip.com.au \
--cc=linux-kernel@vger.kernel.org \
--cc=xschmi00@stud.feec.vutbr.cz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®