Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 165bfda1 authored by Adrian Salido-Moreno's avatar Adrian Salido-Moreno
Browse files

msm: mdss: increase display commit thread priority



In order to provide faster updates to panel, increase the priority of
display thread to reduce latency of display updates.

Change-Id: Iaf0824fdd44c0177c30f14fae0dc8dd96abc4a11
Signed-off-by: default avatarAdrian Salido-Moreno <adrianm@codeaurora.org>
parent 7cdd3a43
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -1571,6 +1571,18 @@ static int __mdss_fb_display_thread(void *data)
{
	struct msm_fb_data_type *mfd = data;
	int ret;
	struct sched_param param;

	/*
	 * this priority was found during empiric testing to have appropriate
	 * realtime scheduling to process display updates and interact with
	 * other real time and normal priority tasks
	 */
	param.sched_priority = 16;
	ret = sched_setscheduler(current, SCHED_FIFO, &param);
	if (ret)
		pr_warn("set priority failed for fb%d display thread\n",
				mfd->index);

	while (1) {
		wait_event(mfd->commit_wait_q,