gpu: ion: Modify gfp flags in ion_system_heap
authorRebecca Schultz Zavin <rebecca@android.com>
Wed, 3 Oct 2012 05:43:41 +0000 (22:43 -0700)
committerArve Hjønnevåg <arve@android.com>
Mon, 1 Jul 2013 21:16:09 +0000 (14:16 -0700)
commit2a5c1c4cfc75913ab94becf05cdea9273a4024c0
tree25f46837fcec3cd05233459aad79dcccf507c14b
parent169b8e42f3a20bef126b5e1d8cb7d0cb458f2564
gpu: ion: Modify gfp flags in ion_system_heap

When allocations larger than order 4 are made, use _GFP_NORETRY
and __GFP_NO_KSWAPD so kswapd doesn't get kicked off to reclaim
these larger chunks.  For smaller allocaitons, these are
unnecessary, as the system should be able to reclaim these.

Change-Id: I6b45cd1a595d25cc39622e3dbcc04d84fa1b7db8
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
drivers/gpu/ion/ion_system_heap.c