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

Commit 3e842e51 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

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

parents 8835c0c2 f1ea6d95
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -3,7 +3,7 @@
 * drivers/staging/android/ion/ion_system_heap.c
 * drivers/staging/android/ion/ion_system_heap.c
 *
 *
 * Copyright (C) 2011 Google, Inc.
 * 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);
	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) {
	    pool_count_below_lowmark(pool) && vmid <= 0) {
		wake_up_process(heap->kworker[cached]);
		wake_up_process(heap->kworker[cached]);
	}
	}