Skip to content

Commit

Permalink
msm: kgsl: Increase worker thread priority
Browse files Browse the repository at this point in the history
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).

Signed-off-by: Sultan Alsawaf <sultanxda@gmail.com>
Signed-off-by: Francisco Franco <franciscofranco.1990@gmail.com>
(cherry picked from commit 671927843a6c41695bcc811a286847b7ab385a52)
  • Loading branch information
kerneltoast authored and freak07 committed Nov 10, 2018
1 parent a25a0ec commit 53405e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/msm/kgsl.c
Expand Up @@ -4868,7 +4868,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,
Expand Down

0 comments on commit 53405e4

Please sign in to comment.