diff options
Diffstat (limited to 'kernel/kexec.c')
-rw-r--r-- | kernel/kexec.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/kexec.c b/kernel/kexec.c index c7fd6692939d..dade9af6bf21 100644 --- a/kernel/kexec.c +++ b/kernel/kexec.c | |||
@@ -1454,7 +1454,6 @@ int kernel_kexec(void) | |||
1454 | if (error) | 1454 | if (error) |
1455 | goto Resume_devices; | 1455 | goto Resume_devices; |
1456 | device_pm_lock(); | 1456 | device_pm_lock(); |
1457 | local_irq_disable(); | ||
1458 | /* At this point, device_suspend() has been called, | 1457 | /* At this point, device_suspend() has been called, |
1459 | * but *not* device_power_down(). We *must* | 1458 | * but *not* device_power_down(). We *must* |
1460 | * device_power_down() now. Otherwise, drivers for | 1459 | * device_power_down() now. Otherwise, drivers for |
@@ -1464,8 +1463,9 @@ int kernel_kexec(void) | |||
1464 | */ | 1463 | */ |
1465 | error = device_power_down(PMSG_FREEZE); | 1464 | error = device_power_down(PMSG_FREEZE); |
1466 | if (error) | 1465 | if (error) |
1467 | goto Enable_irqs; | 1466 | goto Unlock_pm; |
1468 | 1467 | ||
1468 | local_irq_disable(); | ||
1469 | /* Suspend system devices */ | 1469 | /* Suspend system devices */ |
1470 | error = sysdev_suspend(PMSG_FREEZE); | 1470 | error = sysdev_suspend(PMSG_FREEZE); |
1471 | if (error) | 1471 | if (error) |
@@ -1484,9 +1484,9 @@ int kernel_kexec(void) | |||
1484 | if (kexec_image->preserve_context) { | 1484 | if (kexec_image->preserve_context) { |
1485 | sysdev_resume(); | 1485 | sysdev_resume(); |
1486 | Power_up_devices: | 1486 | Power_up_devices: |
1487 | device_power_up(PMSG_RESTORE); | ||
1488 | Enable_irqs: | ||
1489 | local_irq_enable(); | 1487 | local_irq_enable(); |
1488 | device_power_up(PMSG_RESTORE); | ||
1489 | Unlock_pm: | ||
1490 | device_pm_unlock(); | 1490 | device_pm_unlock(); |
1491 | enable_nonboot_cpus(); | 1491 | enable_nonboot_cpus(); |
1492 | Resume_devices: | 1492 | Resume_devices: |