projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca195b7
)
kexec jump: in sync with hibernation implementation
author
Huang Ying
<
[email protected]
>
Fri, 15 Aug 2008 07:40:24 +0000
(
00:40
-0700)
committer
Linus Torvalds
<
[email protected]
>
Fri, 15 Aug 2008 15:35:42 +0000
(08:35 -0700)
Add device_pm_lock() and device_pm_unlock() in kernel_kexec() in sync with
current hibernation implementation.
Signed-off-by: Huang Ying <
[email protected]
>
Acked-by: Pavel Machek <
[email protected]
>
Cc: "Rafael J. Wysocki" <
[email protected]
>
Cc: "Eric W. Biederman" <
[email protected]
>
Cc: Vivek Goyal <
[email protected]
>
Cc: Ingo Molnar <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
kernel/kexec.c
patch
|
blob
|
history
diff --git
a/kernel/kexec.c
b/kernel/kexec.c
index b81682312dc442d6cf6c026ac7e75c028387e6dc..17c80fdc453be9c332532aa2deb7bbd9e9167519 100644
(file)
--- a/
kernel/kexec.c
+++ b/
kernel/kexec.c
@@
-1457,6
+1457,7
@@
int kernel_kexec(void)
error = disable_nonboot_cpus();
if (error)
goto Resume_devices;
+ device_pm_lock();
local_irq_disable();
/* At this point, device_suspend() has been called,
* but *not* device_power_down(). We *must*
@@
-1485,6
+1486,7
@@
int kernel_kexec(void)
device_power_up(PMSG_RESTORE);
Enable_irqs:
local_irq_enable();
+ device_pm_unlock();
enable_nonboot_cpus();
Resume_devices:
device_resume(PMSG_RESTORE);