OSDN Git Service

msm: kgsl: Increase priority of RT thread
authorAlex Naidis <alex.naidis@linux.com>
Sat, 31 Dec 2016 15:08:30 +0000 (16:08 +0100)
committerArian <arian.kulmer@web.de>
Tue, 19 Nov 2019 14:36:11 +0000 (15:36 +0100)
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 <alex.naidis@linux.com>
drivers/gpu/msm/kgsl.c

index 90d9bd2..3f6cb0a 100644 (file)
@@ -4972,7 +4972,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,