From 6d78e2c24d25ed17b4fbe829a3e3603d6d6e89f9 Mon Sep 17 00:00:00 2001 From: Han Lu Date: Sat, 4 Jan 2020 14:46:32 +0800 Subject: [PATCH] soc: qcom: qdsp6v2: promote priority of apr_vm_cb_thread The promoting is necessary to prevent audio tick noise under heavy cpu loading. Change-Id: I3fccb3b758b5fb5571031902344e542886b89209 Signed-off-by: Han Lu --- ipc/apr_vm.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ipc/apr_vm.c b/ipc/apr_vm.c index 1b66013b8cf4..6d4ee64743ce 100644 --- a/ipc/apr_vm.c +++ b/ipc/apr_vm.c @@ -31,6 +31,7 @@ #include #include #include +#include #define APR_PKT_IPC_LOG_PAGE_CNT 2 #define APR_VM_CB_THREAD_NAME "apr_vm_cb_thread" @@ -585,6 +586,9 @@ static int apr_vm_cb_thread(void *data) unsigned long delay = jiffies + (HZ / 2); int status = 0; int ret = 0; + struct sched_param param = {.sched_priority = 1}; + + sched_setscheduler(current, SCHED_FIFO, ¶m); while (1) { do {