diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-06-12 16:17:27 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-06-12 16:17:27 -0400 |
| commit | 947ec0b0c1e7e80eef4fe64f7763a06d0cf04d2e (patch) | |
| tree | 29547b6975d58c3b252f08dc6c2dbda3b9adfa88 /drivers/xen/manage.c | |
| parent | c53567ad4528b6efefc3fc22a354d20f6226a098 (diff) | |
| parent | 5818a6e2519b34cd6d0220d89f5729ab2725e1bf (diff) | |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/suspend-2.6
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/suspend-2.6:
PM: Add empty suspend/resume device irq functions
PM/Hibernate: Move NVS routines into a seperate file (v2).
PM/Hibernate: Rename disk.c to hibernate.c
PM: Separate suspend to RAM functionality from core
Driver Core: Rework platform suspend/resume, print warning
PM: Remove device_type suspend()/resume()
PM/Hibernate: Move memory shrinking to snapshot.c (rev. 2)
PM/Suspend: Do not shrink memory before suspend
PM: Remove bus_type suspend_late()/resume_early() V2
PM core: rename suspend and resume functions
PM: Rename device_power_down/up()
PM: Remove unused asm/suspend.h
x86: unify power/cpu_(32|64).c
x86: unify power/cpu_(32|64) copyright notes
x86: unify power/cpu_(32|64) regarding restoring processor state
x86: unify power/cpu_(32|64) regarding saving processor state
x86: unify power/cpu_(32|64) global variables
x86: unify power/cpu_(32|64) headers
PM: Warn if interrupts are enabled during suspend-resume of sysdevs
PM/ACPI/x86: Fix sparse warning in arch/x86/kernel/acpi/sleep.c
Diffstat (limited to 'drivers/xen/manage.c')
| -rw-r--r-- | drivers/xen/manage.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/xen/manage.c b/drivers/xen/manage.c index fddc2025dece..10d03d7931c4 100644 --- a/drivers/xen/manage.c +++ b/drivers/xen/manage.c | |||
| @@ -43,7 +43,7 @@ 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 | device_power_up(PMSG_RESUME); | 46 | dpm_resume_noirq(PMSG_RESUME); |
| 47 | return err; | 47 | return err; |
| 48 | } | 48 | } |
| 49 | 49 | ||
| @@ -69,7 +69,7 @@ static int xen_suspend(void *data) | |||
| 69 | } | 69 | } |
| 70 | 70 | ||
| 71 | sysdev_resume(); | 71 | sysdev_resume(); |
| 72 | device_power_up(PMSG_RESUME); | 72 | dpm_resume_noirq(PMSG_RESUME); |
| 73 | 73 | ||
| 74 | return 0; | 74 | return 0; |
| 75 | } | 75 | } |
| @@ -92,18 +92,18 @@ static void do_suspend(void) | |||
| 92 | } | 92 | } |
| 93 | #endif | 93 | #endif |
| 94 | 94 | ||
| 95 | err = device_suspend(PMSG_SUSPEND); | 95 | err = dpm_suspend_start(PMSG_SUSPEND); |
| 96 | if (err) { | 96 | if (err) { |
| 97 | printk(KERN_ERR "xen suspend: device_suspend %d\n", err); | 97 | printk(KERN_ERR "xen suspend: dpm_suspend_start %d\n", err); |
| 98 | goto out; | 98 | goto out; |
| 99 | } | 99 | } |
| 100 | 100 | ||
| 101 | printk(KERN_DEBUG "suspending xenstore...\n"); | 101 | printk(KERN_DEBUG "suspending xenstore...\n"); |
| 102 | xs_suspend(); | 102 | xs_suspend(); |
| 103 | 103 | ||
| 104 | err = device_power_down(PMSG_SUSPEND); | 104 | err = dpm_suspend_noirq(PMSG_SUSPEND); |
| 105 | if (err) { | 105 | if (err) { |
| 106 | printk(KERN_ERR "device_power_down failed: %d\n", err); | 106 | printk(KERN_ERR "dpm_suspend_noirq failed: %d\n", err); |
| 107 | goto resume_devices; | 107 | goto resume_devices; |
| 108 | } | 108 | } |
| 109 | 109 | ||
| @@ -119,10 +119,10 @@ static void do_suspend(void) | |||
| 119 | } else | 119 | } else |
| 120 | xs_suspend_cancel(); | 120 | xs_suspend_cancel(); |
| 121 | 121 | ||
| 122 | device_power_up(PMSG_RESUME); | 122 | dpm_resume_noirq(PMSG_RESUME); |
| 123 | 123 | ||
| 124 | resume_devices: | 124 | resume_devices: |
| 125 | device_resume(PMSG_RESUME); | 125 | dpm_resume_end(PMSG_RESUME); |
| 126 | 126 | ||
| 127 | /* Make sure timer events get retriggered on all CPUs */ | 127 | /* Make sure timer events get retriggered on all CPUs */ |
| 128 | clock_was_set(); | 128 | clock_was_set(); |
