From: Ming Lei Date: Fri, 22 Oct 2010 21:48:14 +0000 (+0200) Subject: PM / Runtime: fix recursive locking warning of lockdep from rpm_resume() X-Git-Tag: v2.6.37-rc1~99^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d63be5f924cf054e7ac18bb2761f9533039fb076;p=pandora-kernel.git PM / Runtime: fix recursive locking warning of lockdep from rpm_resume() For device with no_callbacks flag set, its power lock and its parent's power lock may be held nestedly in rpm_resume, so we should take spin_lock_nested(lock, SINGLE_DEPTH_NESTING) to acquire parent power lock to avoid lockdep warning. Signed-off-by: Ming Lei Acked-by: Alan Stern Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed