PM / QoS: Use lockdep asserts to find missing hold of power.lock
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Fri, 9 Jan 2015 08:27:58 +0000 (09:27 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 23 Jan 2015 21:31:08 +0000 (22:31 +0100)
commitf90b8ad83a6ae984edb6b489ed02e45dadfd263e
treef3b756682a92783fdb0f2064dc2d3f1b3b47e0bb
parentf5f4eda4c9b9e26ec7d7c8ce083e386016ffc0f8
PM / QoS: Use lockdep asserts to find missing hold of power.lock

Add lockdep asserts for holding the dev->power.lock to non-static
functions which require this. They could be used outside of the file so
asserts may help in detecting locking misuse.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/qos.c