diff options
Diffstat (limited to 'kernel/power/disk.c')
| -rw-r--r-- | kernel/power/disk.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/kernel/power/disk.c b/kernel/power/disk.c index 5cb080e7eebd..1c18bc894a2d 100644 --- a/kernel/power/disk.c +++ b/kernel/power/disk.c | |||
| @@ -216,12 +216,12 @@ static int create_image(int platform_mode) | |||
| 216 | return error; | 216 | return error; |
| 217 | 217 | ||
| 218 | /* At this point, device_suspend() has been called, but *not* | 218 | /* At this point, device_suspend() has been called, but *not* |
| 219 | * device_power_down(). We *must* call device_power_down() now. | 219 | * device_suspend_noirq(). We *must* call device_suspend_noirq() now. |
| 220 | * Otherwise, drivers for some devices (e.g. interrupt controllers) | 220 | * Otherwise, drivers for some devices (e.g. interrupt controllers) |
| 221 | * become desynchronized with the actual state of the hardware | 221 | * become desynchronized with the actual state of the hardware |
| 222 | * at resume time, and evil weirdness ensues. | 222 | * at resume time, and evil weirdness ensues. |
| 223 | */ | 223 | */ |
| 224 | error = device_power_down(PMSG_FREEZE); | 224 | error = device_suspend_noirq(PMSG_FREEZE); |
| 225 | if (error) { | 225 | if (error) { |
| 226 | printk(KERN_ERR "PM: Some devices failed to power down, " | 226 | printk(KERN_ERR "PM: Some devices failed to power down, " |
| 227 | "aborting hibernation\n"); | 227 | "aborting hibernation\n"); |
| @@ -262,7 +262,7 @@ static int create_image(int platform_mode) | |||
| 262 | 262 | ||
| 263 | Power_up: | 263 | Power_up: |
| 264 | sysdev_resume(); | 264 | sysdev_resume(); |
| 265 | /* NOTE: device_power_up() is just a resume() for devices | 265 | /* NOTE: device_resume_noirq() is just a resume() for devices |
| 266 | * that suspended with irqs off ... no overall powerup. | 266 | * that suspended with irqs off ... no overall powerup. |
| 267 | */ | 267 | */ |
| 268 | 268 | ||
| @@ -275,7 +275,7 @@ static int create_image(int platform_mode) | |||
| 275 | Platform_finish: | 275 | Platform_finish: |
| 276 | platform_finish(platform_mode); | 276 | platform_finish(platform_mode); |
| 277 | 277 | ||
| 278 | device_power_up(in_suspend ? | 278 | device_resume_noirq(in_suspend ? |
| 279 | (error ? PMSG_RECOVER : PMSG_THAW) : PMSG_RESTORE); | 279 | (error ? PMSG_RECOVER : PMSG_THAW) : PMSG_RESTORE); |
| 280 | 280 | ||
| 281 | return error; | 281 | return error; |
| @@ -339,7 +339,7 @@ static int resume_target_kernel(bool platform_mode) | |||
| 339 | { | 339 | { |
| 340 | int error; | 340 | int error; |
| 341 | 341 | ||
| 342 | error = device_power_down(PMSG_QUIESCE); | 342 | error = device_suspend_noirq(PMSG_QUIESCE); |
| 343 | if (error) { | 343 | if (error) { |
| 344 | printk(KERN_ERR "PM: Some devices failed to power down, " | 344 | printk(KERN_ERR "PM: Some devices failed to power down, " |
| 345 | "aborting resume\n"); | 345 | "aborting resume\n"); |
| @@ -394,7 +394,7 @@ static int resume_target_kernel(bool platform_mode) | |||
| 394 | Cleanup: | 394 | Cleanup: |
| 395 | platform_restore_cleanup(platform_mode); | 395 | platform_restore_cleanup(platform_mode); |
| 396 | 396 | ||
| 397 | device_power_up(PMSG_RECOVER); | 397 | device_resume_noirq(PMSG_RECOVER); |
| 398 | 398 | ||
| 399 | return error; | 399 | return error; |
| 400 | } | 400 | } |
| @@ -454,7 +454,7 @@ int hibernation_platform_enter(void) | |||
| 454 | goto Resume_devices; | 454 | goto Resume_devices; |
| 455 | } | 455 | } |
| 456 | 456 | ||
| 457 | error = device_power_down(PMSG_HIBERNATE); | 457 | error = device_suspend_noirq(PMSG_HIBERNATE); |
| 458 | if (error) | 458 | if (error) |
| 459 | goto Resume_devices; | 459 | goto Resume_devices; |
| 460 | 460 | ||
| @@ -479,7 +479,7 @@ int hibernation_platform_enter(void) | |||
| 479 | Platofrm_finish: | 479 | Platofrm_finish: |
| 480 | hibernation_ops->finish(); | 480 | hibernation_ops->finish(); |
| 481 | 481 | ||
| 482 | device_power_up(PMSG_RESTORE); | 482 | device_suspend_noirq(PMSG_RESTORE); |
| 483 | 483 | ||
| 484 | Resume_devices: | 484 | Resume_devices: |
| 485 | entering_platform_hibernation = false; | 485 | entering_platform_hibernation = false; |
