mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-01 16:57:18 +09:00
PM / Runtime: Fix lockdep warning in __pm_runtime_set_status()
commit bab636b921 upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
9f3bb2b1e8
commit
7f112f35f0
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user