gpu: ion: Clear GFP_WAIT flag on high order allocations
authorRebecca Schultz Zavin <rebecca@android.com>
Fri, 19 Oct 2012 04:51:53 +0000 (21:51 -0700)
committerArve Hjønnevåg <arve@android.com>
Mon, 1 Jul 2013 21:16:12 +0000 (14:16 -0700)
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: Rebecca Schultz Zavin <rebecca@android.com>
drivers/gpu/ion/ion_system_heap.c

index 4e4137868405ea05fbfb774adb37388bc193cb3b..2dc3048ed6f66f807fb48082ff4718d770846f2e 100644 (file)
@@ -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};