Skip to content

Commit

Permalink
PM / Runtime: Fix lockdep warning in __pm_runtime_set_status()
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Rafael J. Wysocki committed Dec 6, 2009
1 parent 66d0ae4 commit bab636b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/base/power/runtime.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bab636b

Please sign in to comment.