event/dsw: reduce latency in low-load situations
authorMattias Rönnblom <mattias.ronnblom@ericsson.com>
Mon, 9 Mar 2020 06:50:59 +0000 (07:50 +0100)
committerJerin Jacob <jerinj@marvell.com>
Sat, 4 Apr 2020 13:10:17 +0000 (15:10 +0200)
commit3db0a0984f42255a0c4c97b80c7ac1ded8f3dd86
tree986872ca34d62a43f627d9c339a21a78cc918aa0
parentaeb2494688fd982fc80f2d1468c5e2106ebc3148
event/dsw: reduce latency in low-load situations

In DSW, in case a port can't produce any events for the application to
consume, the port is considered idle.

To slightly reduce wall-time latency, flush the port's output buffer
in case of such an empty dequeue.

Signed-off-by: Mattias Rönnblom <mattias.ronnblom@ericsson.com>
drivers/event/dsw/dsw_event.c