staging: unisys: visorchannel: Add peek function
authorNeil Horman <nhorman@redhat.com>
Fri, 31 Jul 2015 22:56:32 +0000 (18:56 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 4 Aug 2015 00:45:02 +0000 (17:45 -0700)
commitfdc792cd1b5c86cb34770707aa1b04edce5288cf
tree4a47e45329aa668ed914812fbfa7a15b9f20d011
parentfd93b8059294146a1c3dc9cf6b5616c22b7b47f7
staging: unisys: visorchannel: Add peek function

According to unisys, the s_par hypervisor has a bug in which it never
triggers an interrupt.  That makes the visornic effectively a 2ms poll
loop.  In order to just have the rx thread shceduling a napi poll every
2ms, lets instead give it the chance to check the response queue for
data before we schedule.  This helper provides that functionality

Signed-off-by: Neil Horman <nhorman@redhat.com>
Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/include/visorbus.h
drivers/staging/unisys/visorbus/visorchannel.c