]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
staging: unisys: visornic: Convert to using napi
authorNeil Horman <nhorman@redhat.com>
Tue, 4 Aug 2015 19:09:47 +0000 (15:09 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Aug 2015 19:16:37 +0000 (12:16 -0700)
commit946b254697655f0ea0c54b1b0e20fb3b9aab99da
treea499fce00c5b4a782c6bd525c2943cf0cda7d086
parent6212990a87588869aa9a93fa5b861d3abf1be783
staging: unisys: visornic: Convert to using napi

Switch the visornic over to use napi.  Currently there is a kernel
thread that sits and waits on a wait queue to get notified of incoming
virtual interrupts. It would be nice if we could handle frame reception
using the standard napi processing instead.  This patch creates our napi
instance and has the rx thread schedule it

Given that the unisys hypervisor currently requires that queue servicing
be done by a polling loop that wakes up every 2ms, lets instead also
convert that to a timer, which is simpler, and allows us to remove all
the thread starting and stopping code.

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/visornic/visornic_main.c