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

Commit 75902345 authored by Terence Hampson's avatar Terence Hampson Committed by Ujwal Patel
Browse files

msm: mdss: rotator: make work queue high priority



Janks in display are occurring due to delayed scheduling of rotator
work. Making it high priority would prevent such occurrences.

Change-Id: I85a7e4ca46596cfad56b29256ede30f1a13f0123
Signed-off-by: default avatarTerence Hampson <thampson@codeaurora.org>
Signed-off-by: default avatarUjwal Patel <ujwalp@codeaurora.org>
parent 0a2266d2
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -826,8 +826,8 @@ static int mdss_rotator_init_queue(struct mdss_rot_mgr *mgr)
	for (i = 0; i < mgr->queue_count; i++) {
	for (i = 0; i < mgr->queue_count; i++) {
		snprintf(name, sizeof(name), "rot_workq_%d", i);
		snprintf(name, sizeof(name), "rot_workq_%d", i);
		pr_debug("work queue name=%s\n", name);
		pr_debug("work queue name=%s\n", name);
		mgr->queues[i].rot_work_queue =
		mgr->queues[i].rot_work_queue = alloc_ordered_workqueue("%s",
			create_singlethread_workqueue(name);
				WQ_UNBOUND | WQ_MEM_RECLAIM | WQ_HIGHPRI, name);
		if (!mgr->queues[i].rot_work_queue) {
		if (!mgr->queues[i].rot_work_queue) {
			ret = -EPERM;
			ret = -EPERM;
			break;
			break;