diff options
author | Ruofei Ma <ruofeim@google.com> | 2023-04-07 17:17:47 -0700 |
---|---|---|
committer | Ruofei Ma <ruofeim@google.com> | 2023-04-10 16:28:13 +0000 |
commit | ded8cd65b7650f899dc79bacf5529d2cf89d35e8 (patch) | |
tree | 9009d573202cf84332e0f4685ac44f8f71e26bce | |
parent | bdd3d1749d975ffc26da35f13d748985a683d03f (diff) | |
download | gchips-ded8cd65b7650f899dc79bacf5529d2cf89d35e8.tar.gz |
Change kernel thread priority to -10
Performance team suggests video thread should use -10 as its priority.
Bug: 274657268
Change-Id: I30464158943e22ffc4f2624aedf5129c2eb96ae8
Signed-off-by: Ruofei Ma <ruofeim@google.com>
-rw-r--r-- | bigo.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -90,9 +90,6 @@ static void bigo_coredump(struct bigo_core *core, const char *crash_info) static inline int on_first_instance_open(struct bigo_core *core) { int rc; - struct sched_param param = { - .sched_priority = MAX_RT_PRIO / 4 - 2 - }; core->worker_thread = kthread_run(bigo_worker_thread, (void*)core, "bigo_worker_thread"); @@ -102,7 +99,8 @@ static inline int on_first_instance_open(struct bigo_core *core) pr_err("failed to create worker thread rc = %d\n", rc); goto exit; } - sched_setscheduler_nocheck(core->worker_thread, SCHED_FIFO, ¶m); + + sched_set_normal(core->worker_thread, -10); rc = bigo_pt_client_enable(core); if (rc) { |