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

Commit f1ea6d95 authored by Charan Teja Reddy's avatar Charan Teja Reddy
Browse files

ion: don't wakeup refill threads for order-0 requests



We check the pool->count against the ION_POOL_LOW_MARK before deciding
to wakeup the refill threads. But as we never refill the order-0 pool,
we will keep waking up these refill threads only they goto sleep again
without doing any work. The overhead of waking up of these threads
is quite high. Fix it.

Change-Id: I0d10b96a46de24b45822ebeda1f20b75e43c2a5d
Signed-off-by: default avatarCharan Teja Reddy <charante@codeaurora.org>
parent 42a3bb39
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@
 * drivers/staging/android/ion/ion_system_heap.c
 *
 * Copyright (C) 2011 Google, Inc.
 * Copyright (c) 2011-2019, The Linux Foundation. All rights reserved.
 * Copyright (c) 2011-2020, The Linux Foundation. All rights reserved.
 *
 */

@@ -78,7 +78,7 @@ static struct page *alloc_buffer_page(struct ion_system_heap *heap,

	page = ion_page_pool_alloc(pool, from_pool);

	if (pool_auto_refill_en &&
	if (pool_auto_refill_en && pool->order &&
	    pool_count_below_lowmark(pool) && vmid <= 0) {
		wake_up_process(heap->kworker[cached]);
	}