mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user