ion: use alloc_pages in system contig heap
authorColin Cross <ccross@android.com>
Tue, 26 Nov 2013 23:35:29 +0000 (15:35 -0800)
committerColin Cross <ccross@android.com>
Thu, 12 Dec 2013 23:27:12 +0000 (15:27 -0800)
commit5d68d972728717ee85162bd50122901b7fe8cc6d
tree6c10025f0ac53ad750c2d9003ebc108cd292273f
parent1f67f7520303192e46e1621639097007ab076b90
ion: use alloc_pages in system contig heap

There is no reason to use kzalloc, just call alloc_pages directly.
Change the GFP from GFP_KERNEL to include __GFP_HIGH, to allow it
to return contiguous pages from highmem.  virt_to_* functions
aren't valid on highmem pages, so store the struct page * in an
sg_table in buffer->priv_virt like most other heaps, and replace
virt_to_* with page_to_*.

Change-Id: Ida78888b101f080883716e1fa5038dfc4dbabd16
Signed-off-by: Colin Cross <ccross@android.com>
drivers/staging/android/ion/ion_system_heap.c