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

Commit 50907dbd authored by Prakash Gupta's avatar Prakash Gupta Committed by Ashwini Muduganti
Browse files

ion: use unbounded wq for prefetch work



prefetch work takes long time to complete and hence is not recommended to
use system_wq which is CPU_BOUND.  Instead use system_unbounded_wq to allow
cpus to service ipi while prefetch work is ongoing.

Change-Id: I358f1206b0269a33a4701fbdc66b9659a4c8049e
Signed-off-by: default avatarPrakash Gupta <guptap@codeaurora.org>
parent 806bfa99
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -286,7 +286,7 @@ static int __ion_system_secure_heap_resize(struct ion_heap *heap, void *ptr,
		goto out_free;
	}
	list_splice_init(&items, &secure_heap->prefetch_list);
	schedule_delayed_work(&secure_heap->prefetch_work,
	queue_delayed_work(system_unbound_wq, &secure_heap->prefetch_work,
			   shrink ?  msecs_to_jiffies(SHRINK_DELAY) : 0);
	spin_unlock_irqrestore(&secure_heap->work_lock, flags);