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

Commit a10821f7 authored by Rebecca Schultz Zavin's avatar Rebecca Schultz Zavin Committed by Arve Hjønnevåg
Browse files

gpu: ion: Clear GFP_WAIT flag on high order allocations



This will prevent the kernel from kicking off compaction
when higher order allocations are made.  Instead we will
get these high order allocations only if they are readily
available.

Change-Id: I5c038781ef4028c1c0a1a52b6cb549d26550a124
Signed-off-by: default avatarRebecca Schultz Zavin <rebecca@android.com>
parent 552584f5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -28,7 +28,7 @@

static unsigned int high_order_gfp_flags = (GFP_HIGHUSER | __GFP_ZERO |
					    __GFP_NOWARN | __GFP_NORETRY |
					    __GFP_NO_KSWAPD);
					    __GFP_NO_KSWAPD) & ~__GFP_WAIT;
static unsigned int low_order_gfp_flags  = (GFP_HIGHUSER | __GFP_ZERO |
					 __GFP_NOWARN);
static const unsigned int orders[] = {8, 4, 0};