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)
committerSubramaniam C.A <subramaniam.ca@ti.com>
Thu, 1 Sep 2011 19:02:07 +0000 (14:02 -0500)
commite262dddd28ff10650774f390480b07f08328a1e1
tree678b5892254f1ee06080107548b08cad58758b66
parentb2d08557a93ba244caf5d68f4a3bb2ae7974aad3
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