PM / Sleep: Recommend [un]lock_system_sleep() over using pm_mutex directly
authorSrivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
Wed, 7 Dec 2011 21:30:09 +0000 (22:30 +0100)
committerRafael J. Wysocki <rjw@sisk.pl>
Thu, 8 Dec 2011 22:22:45 +0000 (23:22 +0100)
commitcba3176e88fa134ece3ae1cf7e35dab9972d7853
tree87e5eb4cdbda2f2ffeffab35a02710c2f6e81d2b
parentbcda53faf5814c0c6025a0bd47108adfcbe9f199
PM / Sleep: Recommend [un]lock_system_sleep() over using pm_mutex directly

Update the documentation to explain the perils of directly using
mutex_[un]lock(&pm_mutex) and recommend the usage of the safe
APIs [un]lock_system_sleep() instead.

Signed-off-by: Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Documentation/power/freezing-of-tasks.txt