projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
66d0ae4
)
PM / Runtime: Fix lockdep warning in __pm_runtime_set_status()
author
Rafael J. Wysocki
<rjw@sisk.pl>
Thu, 3 Dec 2009 19:21:21 +0000
(20:21 +0100)
committer
Rafael J. Wysocki
<rjw@sisk.pl>
Sun, 6 Dec 2009 15:17:56 +0000
(16:17 +0100)
Lockdep complains about taking the parent lock in
__pm_runtime_set_status(), so mark it as nested.
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Reported-by: Alan Stern <stern@rowland.harvard.edu>
Cc: stable@kernel.org
drivers/base/power/runtime.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/base/power/runtime.c
b/drivers/base/power/runtime.c
index 846d89e3d12294d423af8a38ff57373d0b6f4505..0a4b75f834c02502e8a330e4f5828fcfaf28c229 100644
(file)
--- a/
drivers/base/power/runtime.c
+++ b/
drivers/base/power/runtime.c
@@
-777,7
+777,7
@@
int __pm_runtime_set_status(struct device *dev, unsigned int status)
}
if (parent) {
- spin_lock
(&parent->power.lock
);
+ spin_lock
_nested(&parent->power.lock, SINGLE_DEPTH_NESTING
);
/*
* It is invalid to put an active child under a parent that is