RPMSG: replace spinlock with mutex to lock kick function
authorFernando Guzman Lugo <fernando.lugo@ti.com>
Wed, 22 Jun 2011 07:23:40 +0000 (02:23 -0500)
committerCris Jansson <cjansson@ti.com>
Sat, 27 Aug 2011 00:04:53 +0000 (19:04 -0500)
commit30bbf7ae4ead45820dc49133046b2604b907fdef
tree4bd7a26366e0aab76dfb004fb2a470344be873c9
parent58241f6ec0a3e7b1d55ef4259e9ee5c6ac458681
RPMSG: replace spinlock with mutex to lock kick function

After the patches to add autosuspend support to remote processor, the kick
function needs to wait until the remote processor is waken up, in case it is on
hibernation state. Therefore, the kick function can sleep now and we can not
use spinlock anymore.

Id: Change-Id: I68ffe83aa88776fd4e75fab67fbd37af5957538a
Signed-off-by: Fernando Guzman Lugo <fernando.lugo@ti.com>
Signed-off-by: Iliyan Malchev <malchev@google.com>
drivers/rpmsg/virtio_rpmsg_bus.c