diff options
| -rw-r--r-- | drivers/xen/manage.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/xen/manage.c b/drivers/xen/manage.c index 10d03d7931c4..7b69a1aef877 100644 --- a/drivers/xen/manage.c +++ b/drivers/xen/manage.c | |||
| @@ -43,7 +43,6 @@ static int xen_suspend(void *data) | |||
| 43 | if (err) { | 43 | if (err) { |
| 44 | printk(KERN_ERR "xen_suspend: sysdev_suspend failed: %d\n", | 44 | printk(KERN_ERR "xen_suspend: sysdev_suspend failed: %d\n", |
| 45 | err); | 45 | err); |
| 46 | dpm_resume_noirq(PMSG_RESUME); | ||
| 47 | return err; | 46 | return err; |
| 48 | } | 47 | } |
| 49 | 48 | ||
| @@ -69,7 +68,6 @@ static int xen_suspend(void *data) | |||
| 69 | } | 68 | } |
| 70 | 69 | ||
| 71 | sysdev_resume(); | 70 | sysdev_resume(); |
| 72 | dpm_resume_noirq(PMSG_RESUME); | ||
| 73 | 71 | ||
| 74 | return 0; | 72 | return 0; |
| 75 | } | 73 | } |
| @@ -108,6 +106,9 @@ static void do_suspend(void) | |||
| 108 | } | 106 | } |
| 109 | 107 | ||
| 110 | err = stop_machine(xen_suspend, &cancelled, cpumask_of(0)); | 108 | err = stop_machine(xen_suspend, &cancelled, cpumask_of(0)); |
| 109 | |||
| 110 | dpm_resume_noirq(PMSG_RESUME); | ||
| 111 | |||
| 111 | if (err) { | 112 | if (err) { |
| 112 | printk(KERN_ERR "failed to start xen_suspend: %d\n", err); | 113 | printk(KERN_ERR "failed to start xen_suspend: %d\n", err); |
| 113 | goto out; | 114 | goto out; |
| @@ -119,8 +120,6 @@ static void do_suspend(void) | |||
| 119 | } else | 120 | } else |
| 120 | xs_suspend_cancel(); | 121 | xs_suspend_cancel(); |
| 121 | 122 | ||
| 122 | dpm_resume_noirq(PMSG_RESUME); | ||
| 123 | |||
| 124 | resume_devices: | 123 | resume_devices: |
| 125 | dpm_resume_end(PMSG_RESUME); | 124 | dpm_resume_end(PMSG_RESUME); |
| 126 | 125 | ||
