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>
Mon, 22 Aug 2011 23:15:07 +0000 (18:15 -0500)
commit6becc3e8fa71b1e4f3602188aa1117d314993504
tree19cdd0a0ab0cf7ee4f7d17561c46a0be2dd89505
parent05e9b495be807599e4237072d68a73f1bfc48c4b
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