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:
committed by
UtsavBalar1231
parent
ce4a83ad7c
commit
daeba2232b
@@ -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, ¶m);
|
||||
|
||||
while (1) {
|
||||
wait_event(oom_waitq, atomic_read(&needs_reclaim));
|
||||
|
||||
Reference in New Issue
Block a user