summaryrefslogtreecommitdiff
path: root/drivers/gpu
diff options
context:
space:
mode:
authorRebecca Schultz Zavin <rebecca@android.com>2012-06-07 16:59:59 -0700
committerVarun Wadekar <vwadekar@nvidia.com>2012-07-23 14:10:14 +0530
commit84538df105f843abb5539be82225e7cc863e1ea9 (patch)
tree1ae2a91b7baf0b3d1768dfe92ee90683157cca1e /drivers/gpu
parent1703908b42db6db8c9468bbe9887d728c5df7d82 (diff)
gpu: ion: ion_system_heap: Change allocations to GFP_HIGHUSER
Previously the ion_system_heap was using GFP_KERNEL, forcing all allocations to be in lowmem. This quickly causes us to run out of lowmem. Change-Id: I6d502a5f1c20c8a8e44fb5903fcb228f8435a564 Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
Diffstat (limited to 'drivers/gpu')
-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 116e9231a6b4..e1f2e71287d3 100644
--- a/drivers/gpu/ion/ion_system_heap.c
+++ b/drivers/gpu/ion/ion_system_heap.c
@@ -40,7 +40,7 @@ static int ion_system_heap_allocate(struct ion_heap *heap,
goto err0;
for_each_sg(table->sgl, sg, table->nents, i) {
struct page *page;
- page = alloc_page(GFP_KERNEL);
+ page = alloc_page(GFP_HIGHUSER | __GFP_ZERO);
if (!page)
goto err1;
sg_set_page(sg, page, PAGE_SIZE, 0);