mm: make sure the gtp flag is low default [1/1]

PD#SWPL-807

Problem:
The app's window cound be black screen when launched if the ion system
does not retry to allocate memory with the gtp high flag.

Solution:
make sure the gtp flag is low default

Verify:
P212

Change-Id: I562125573f8175cd180196ca73eb04d7dd36add0
Signed-off-by: an.xi <an.xi@amlogic.com>
This commit is contained in:
an.xi
2018-10-30 13:57:43 +08:00
committed by Dongjin Kim
parent 4e58a0a765
commit 2c7a4e2a92

View File

@@ -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)