diff options
author | Colin Cross <ccross@android.com> | 2013-11-26 15:35:29 -0800 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2013-12-12 15:27:12 -0800 |
commit | 5d68d972728717ee85162bd50122901b7fe8cc6d (patch) | |
tree | 6c10025f0ac53ad750c2d9003ebc108cd292273f /drivers/staging/android/ion/ion_heap.c | |
parent | 1f67f7520303192e46e1621639097007ab076b90 (diff) |
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>
Diffstat (limited to 'drivers/staging/android/ion/ion_heap.c')
0 files changed, 0 insertions, 0 deletions