mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
PM / Runtime: Fix lockdep warning in __pm_runtime_set_status()
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
This commit is contained in:
parent
66d0ae4d6f
commit
bab636b921
1 changed files with 1 additions and 1 deletions
|
@ -777,7 +777,7 @@ int __pm_runtime_set_status(struct device *dev, unsigned int status)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (parent) {
|
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
|
* It is invalid to put an active child under a parent that is
|
||||||
|
|
Loading…
Reference in a new issue