mailbox: switch to hrtimer for tx_complete polling
authorSudeep Holla <sudeep.holla@arm.com>
Fri, 31 Jul 2015 10:48:05 +0000 (11:48 +0100)
committerJassi Brar <jaswinder.singh@linaro.org>
Mon, 10 Aug 2015 08:59:27 +0000 (14:29 +0530)
commit0cc67945ea5933d53db69606312cf52f553d1b81
tree486e823aaccb3d7de2bd377af36b0bfdd6cdbf9f
parent63d5e127de8287c4ae80f43cda8cb9c06e612929
mailbox: switch to hrtimer for tx_complete polling

The mailbox core uses jiffy based timer to handle polling for the
transmit completion. If the client/protocol have/support notification
of the last packet transmit completion via ACK packet, then we tick the
Tx state machine immediately in the callback. However if the client
doesn't support that mechanism we might end-up waiting for atleast a
jiffy even though the remote is ready to receive the next request.

This patch switches the timer used for that polling from jiffy-based
to hrtimer-based so that we can support polling at much higher time
resolution.

Reported-and-suggested-by: Juri Lelli <Juri.Lelli@arm.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
drivers/mailbox/mailbox.c
include/linux/mailbox_controller.h