diff --git a/drivers/staging/android/ion/ion_system_heap.c b/drivers/staging/android/ion/ion_system_heap.c index 4364072b2e1b..86fd2fce0a2f 100644 --- a/drivers/staging/android/ion/ion_system_heap.c +++ b/drivers/staging/android/ion/ion_system_heap.c @@ -318,6 +318,10 @@ static int ion_system_heap_create_pools(struct ion_page_pool **pools, if (orders[i] > 4) gfp_flags = high_order_gfp_flags; +#ifdef CONFIG_AMLOGIC_MODIFY + else if (!orders[i]) + gfp_flags = low_order_gfp_flags; +#endif pool = ion_page_pool_create(gfp_flags, orders[i], cached); if (!pool)