From 32a2876cf9e131c4116238e0fd40ae97f677bd06 Mon Sep 17 00:00:00 2001 From: Alex Naidis Date: Sat, 31 Dec 2016 16:08:30 +0100 Subject: [PATCH] msm: kgsl: Increase priority of RT thread We need kgsl_worker_thread to preempt all userspace surfaceflinger threads to avoid a possible deadlock. This will prevent the SF threads from "stealing" cputime from kgsl_worker_thread. This is important, since kgsl_worker_thread executes work which blocks SF from proceeding. Change-Id: Ic4c9ca1f44ad8952ae2154a84ded7013244ca20d Signed-off-by: Alex Naidis --- drivers/gpu/msm/kgsl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/msm/kgsl.c b/drivers/gpu/msm/kgsl.c index 0c4a1266efae..29b67f40bc6b 100755 --- a/drivers/gpu/msm/kgsl.c +++ b/drivers/gpu/msm/kgsl.c @@ -5008,7 +5008,7 @@ static void kgsl_core_exit(void) static int __init kgsl_core_init(void) { int result = 0; - struct sched_param param = { .sched_priority = 2 }; + struct sched_param param = { .sched_priority = 6 }; /* alloc major and minor device numbers */ result = alloc_chrdev_region(&kgsl_driver.major, 0, KGSL_DEVICE_MAX,