staging: unisys: visornic: Remove create_singlethread_workqueue()
authorAmitoj Kaur Chawla <amitoj1606@gmail.com>
Sun, 28 Feb 2016 12:56:37 +0000 (18:26 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 2 Mar 2016 03:14:07 +0000 (19:14 -0800)
commitce388d7e65b962f70b5a4f62ccf4ffaf05804eff
tree1cfdaf89beb5749b33fbf14cd8d7abe596d1dbfe
parent0bde29799a82696bd7608078f56b0509fae722d3
staging: unisys: visornic: Remove create_singlethread_workqueue()

With concurrency managed workqueues, use of dedicated workqueues
can be replaced by using system_wq.
Drop visornic_timeout_reset_workqueue by using system_wq.

Since there is only one work item per devdata and different
devdatas do not need to be ordered, increase of concurrency
level by switching to system_wq should not break anything.

cancel_work_sync() is used to ensure that work is not pending or
executing on any CPU.

Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Acked-by: Tejun Heo <tj@kernel.org>
Tested-by: David Kershner <david.kershner@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/visornic/visornic_main.c