staging: wilc1000: Replace kthread with workqueue for host interface
authorBinoy Jayan <binoy.jayan@linaro.org>
Thu, 23 Jun 2016 05:41:51 +0000 (11:11 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 25 Jun 2016 21:39:53 +0000 (14:39 -0700)
commit2518ac59eb27ed003c5a97e8f9588adafdfe4a8a
tree45535cd547b06ad0ccb83f37c5434cde010587c7
parentc6bb38a5e82a26c6556e05d2140c3a1b4176c2ab
staging: wilc1000: Replace kthread with workqueue for host interface

Deconstruct the kthread / message_queue logic, replacing it with
create_singlethread_workqueue() / queue_work() setup, by adding a
'struct work_struct' to 'struct host_if_msg'. The current kthread
hostIFthread() is converted to a work queue helper with the name
'host_if_work'.

Signed-off-by: Binoy Jayan <binoy.jayan@linaro.org>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/TODO
drivers/staging/wilc1000/host_interface.c