From dfdaafe4df8cff21e4e32d5e10b8cdb7511d1abc Mon Sep 17 00:00:00 2001 From: "an.xi" Date: Tue, 30 Oct 2018 13:57:43 +0800 Subject: [PATCH] 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 --- drivers/staging/android/ion/ion_system_heap.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/staging/android/ion/ion_system_heap.c b/drivers/staging/android/ion/ion_system_heap.c index 4364072..86fd2fc 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) -- 2.7.4