From a845369b1f075ef4b646612d5640541307f177d6 Mon Sep 17 00:00:00 2001 From: acervenky Date: Sun, 15 Sep 2019 20:10:22 +0530 Subject: [PATCH] Improve touch latency : sched fifo --- drivers/input/touchscreen/nt36xxx/nt36xxx.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/input/touchscreen/nt36xxx/nt36xxx.c b/drivers/input/touchscreen/nt36xxx/nt36xxx.c index a2252ff0f..129112af0 100644 --- a/drivers/input/touchscreen/nt36xxx/nt36xxx.c +++ b/drivers/input/touchscreen/nt36xxx/nt36xxx.c @@ -1185,6 +1185,9 @@ static void nvt_ts_work_func(struct work_struct *work) #endif /* MT_PROTOCOL_B */ int32_t i = 0; int32_t finger_cnt = 0; + struct sched_param param = { .sched_priority = MAX_USER_RT_PRIO / 2 }; + + sched_setscheduler(current, SCHED_FIFO, ¶m); mutex_lock(&ts->lock);