input: touch: sharp: use singlethreaded wq.
David Pu [Thu, 12 Nov 2015 04:22:21 +0000 (20:22 -0800)]
create_singlethread_workqueue has much short and
consistent latency compared to alloc_workqueue.
It fixes random line break issue.

Bug 1704546

Change-Id: I6de67ba353b19b03c983f7867bf3b045ad01d2b7
Signed-off-by: David Pu <dpu@nvidia.com>
Reviewed-on: http://git-master/r/832081
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

drivers/input/touchscreen/lr388k7_ts.c

index 9d2ee17..36ffb12 100644 (file)
@@ -2272,7 +2272,7 @@ static void lr388k7_init_ts(void)
        lr388k7_init_parameter();
        memset(&g_st_state, 0, sizeof(struct lr388k7_ts_parameter));
 
-       g_st_state.st_wq_k7 = alloc_workqueue("lr388k7_work", WQ_HIGHPRI, 1);
+       g_st_state.st_wq_k7 = create_singlethread_workqueue("lr388k7_work");
        INIT_WORK(&g_st_state.st_work_k7, lr388k7_work_handler);
 }