msm: kgsl: Increase worker thread priority
Currently, the kgsl worker thread is erroneosly ranked right below
Android's audio threads in terms of priority.
The kgsl worker thread is in the critical path for rendering frames to the
display, so increase its priority to match the priority of MDSS' kthread (mdss_fb0).
Change-Id: If47218581ed4ab159815ae6e9e03a53543b8068d
Signed-off-by: Sultan Alsawaf <sultan@kerneltoast.com>
Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
diff --git a/drivers/gpu/msm/kgsl.c b/drivers/gpu/msm/kgsl.c
index 62c70f5..03492ad 100644
--- a/drivers/gpu/msm/kgsl.c
+++ b/drivers/gpu/msm/kgsl.c
@@ -4942,7 +4942,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 = 16 };
/* alloc major and minor device numbers */
result = alloc_chrdev_region(&kgsl_driver.major, 0, KGSL_DEVICE_MAX,