soc: qcom: qmi_interface: allocate high priority work queue

Some qmi clients have low latency requirement. In high system load
there may be scheduling delay in work queue which can delay qmi packet
delivery to qmi clients.

Adding high priority flag while allocating qmi work queue.

Change-Id: I64ba90777d3337849113ae4163f997bb781fbd40
Signed-off-by: Deepak Kumar Singh <deesin@codeaurora.org>
This commit is contained in:
Deepak Kumar Singh 2021-06-21 17:32:25 +05:30 committed by Pranav Mahesh Phansalkar
parent cc3bd056e5
commit 14433d5e24

View File

@ -665,7 +665,7 @@ int qmi_handle_init(struct qmi_handle *qmi, size_t recv_buf_size,
if (!qmi->recv_buf)
return -ENOMEM;
qmi->wq = alloc_workqueue("qmi_msg_handler", WQ_UNBOUND, 1);
qmi->wq = alloc_workqueue("qmi_msg_handler", WQ_UNBOUND|WQ_HIGHPRI, 1);
if (!qmi->wq) {
ret = -ENOMEM;
goto err_free_recv_buf;