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.

Signed-off-by: Alex Naidis <alex.naidis@linux.com>
This commit is contained in:
Alex Naidis 2016-12-31 16:08:30 +01:00 committed by Gagan Malvi
parent 90753ad1c5
commit 6c262f7c81
No known key found for this signature in database
GPG key ID: B932A7CE71E9198F

View file

@ -5281,7 +5281,7 @@ static void kgsl_core_exit(void)
static int __init kgsl_core_init(void) static int __init kgsl_core_init(void)
{ {
int result = 0; int result = 0;
struct sched_param param = { .sched_priority = 2 }; struct sched_param param = { .sched_priority = 6 };
/* alloc major and minor device numbers */ /* alloc major and minor device numbers */
result = alloc_chrdev_region(&kgsl_driver.major, 0, result = alloc_chrdev_region(&kgsl_driver.major, 0,