Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 46dacba5 authored by Michal Schmidt's avatar Michal Schmidt Committed by Linus Torvalds
Browse files

[PATCH] swsusp: prevent disks from spinning down and up



Stop the disks from spinning down and up on suspend.

Signed-off-by: default avatarMichal Schmidt <xschmi00@stud.feec.vutbr.cz>
Cc: Pavel Machek <pavel@ucw.cz>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent c2ff18f4
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -150,7 +150,7 @@ static void ide_complete_power_step(ide_drive_t *drive, struct request *rq, u8 s


	switch (rq->pm->pm_step) {
	switch (rq->pm->pm_step) {
	case ide_pm_flush_cache:	/* Suspend step 1 (flush cache) complete */
	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;
			rq->pm->pm_step = ide_pm_state_completed;
		else
		else
			rq->pm->pm_step = idedisk_pm_standby;
			rq->pm->pm_step = idedisk_pm_standby;