aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRebecca Schultz Zavin2012-10-18 23:51:53 -0500
committerArve Hjønnevåg2013-02-19 19:55:46 -0600
commitdbf3dcbfbec3f75c771adddfc88c2a501f6c50e7 (patch)
tree66aba5004cc31d02ea78e4e89bb62b7b274c223e /drivers
parent8d7daccf3b09fc9c90ac0f9810687c680e988039 (diff)
downloadkernel-common-dbf3dcbfbec3f75c771adddfc88c2a501f6c50e7.tar.gz
kernel-common-dbf3dcbfbec3f75c771adddfc88c2a501f6c50e7.tar.xz
kernel-common-dbf3dcbfbec3f75c771adddfc88c2a501f6c50e7.zip
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: Rebecca Schultz Zavin <rebecca@android.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/ion/ion_system_heap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/ion/ion_system_heap.c b/drivers/gpu/ion/ion_system_heap.c
index 4e413786840..2dc3048ed6f 100644
--- a/drivers/gpu/ion/ion_system_heap.c
+++ b/drivers/gpu/ion/ion_system_heap.c
@@ -28,7 +28,7 @@
28 28
29static unsigned int high_order_gfp_flags = (GFP_HIGHUSER | __GFP_ZERO | 29static unsigned int high_order_gfp_flags = (GFP_HIGHUSER | __GFP_ZERO |
30 __GFP_NOWARN | __GFP_NORETRY | 30 __GFP_NOWARN | __GFP_NORETRY |
31 __GFP_NO_KSWAPD); 31 __GFP_NO_KSWAPD) & ~__GFP_WAIT;
32static unsigned int low_order_gfp_flags = (GFP_HIGHUSER | __GFP_ZERO | 32static unsigned int low_order_gfp_flags = (GFP_HIGHUSER | __GFP_ZERO |
33 __GFP_NOWARN); 33 __GFP_NOWARN);
34static const unsigned int orders[] = {8, 4, 0}; 34static const unsigned int orders[] = {8, 4, 0};