From cd43faa16b168e75d73fc4c01839225d340ed74f Mon Sep 17 00:00:00 2001 From: Ajit Pal Singh Date: Wed, 10 Apr 2019 21:13:36 +0530 Subject: [PATCH] qcacmn: Use highprio work queue Use highprio system workqueue instead of normal work queue for USB io_complete_work. This is to avoid latency for receive and TX complete processing. Change-Id: I34859a748b607d633b4905b3f06e3345029d4cba CRs-Fixed: 2456887 --- hif/src/usb/hif_usb_internal.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hif/src/usb/hif_usb_internal.h b/hif/src/usb/hif_usb_internal.h index ddf8cc22546b..3f3a91eafe95 100644 --- a/hif/src/usb/hif_usb_internal.h +++ b/hif/src/usb/hif_usb_internal.h @@ -51,7 +51,8 @@ #define HIF_USB_FLUSH_WORK(pipe) flush_work(&pipe->io_complete_work) #else -#define HIF_USB_SCHEDULE_WORK(pipe) schedule_work(&pipe->io_complete_work) +#define HIF_USB_SCHEDULE_WORK(pipe) queue_work(system_highpri_wq,\ + &(pipe)->io_complete_work) #define HIF_USB_INIT_WORK(pipe)\ INIT_WORK(&pipe->io_complete_work,\ usb_hif_io_comp_work)