simple_lmk: set kthread priority to 7

It shouldn't be hanging with other RT threads.
Set it slightly above sde_rot threads.

Signed-off-by: Yaroslav Furman <yaro330@gmail.com>
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
This commit is contained in:
Yaroslav Furman
2020-01-05 23:00:59 +03:00
committed by UtsavBalar1231
parent ce4a83ad7c
commit daeba2232b

View File

@@ -245,11 +245,9 @@ static void scan_and_kill(unsigned long pages_needed)
static int simple_lmk_reclaim_thread(void *data)
{
static const struct sched_param sched_max_rt_prio = {
.sched_priority = MAX_RT_PRIO - 1
};
struct sched_param param = { .sched_priority = 7 };
sched_setscheduler_nocheck(current, SCHED_FIFO, &sched_max_rt_prio);
sched_setscheduler_nocheck(current, SCHED_FIFO, &param);
while (1) {
wait_event(oom_waitq, atomic_read(&needs_reclaim));