mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
[PATCH] swsusp: prevent disks from spinning down and up
Stop the disks from spinning down and up on suspend. Signed-off-by: Michal Schmidt <[email protected]> Cc: Pavel Machek <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
c2ff18f407
commit
46dacba52a
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue