From 862d75d7fa2279bb502e4559663962036c117162 Mon Sep 17 00:00:00 2001 From: Hongtao Peng Date: Wed, 29 Sep 2021 15:51:35 +0800 Subject: [PATCH] ipc: apr_vm: change the priority of apr_vm_cb_threa When the CPU is very busy, the APR message may timeout due to other high-priority threads blocking. Increase the priority of apr_vm_cb_thread from 1 to 3 to unblock. Change-Id: I11be527b270e55dccafa67ed4c7b8b25799b8542 Signed-off-by: Hongtao Peng --- ipc/apr_vm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipc/apr_vm.c b/ipc/apr_vm.c index 31c384b113e8..6f4d4580d79a 100644 --- a/ipc/apr_vm.c +++ b/ipc/apr_vm.c @@ -585,7 +585,7 @@ 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}; + struct sched_param param = {.sched_priority = 3}; sched_setscheduler(current, SCHED_FIFO, ¶m);