ion: remove ion_heap_alloc_pages
authorColin Cross <ccross@android.com>
Tue, 26 Nov 2013 23:25:59 +0000 (15:25 -0800)
committerColin Cross <ccross@android.com>
Thu, 12 Dec 2013 23:27:11 +0000 (15:27 -0800)
commitd671290eae60f4a77ab2aef79cfaed008ee0716d
tree654ba7c1fcdd201f7e9119582ac49c0cf654dc04
parented6cfafce575cc6baa099212c69b56c0132f598d
ion: remove ion_heap_alloc_pages

Now that ion_vm_fault doesn't need a struct page with a nonzero
refcount, there is no need allocate heap memory for cached pages using
split_page.  Remove the ion_heap_alloc_pages and ion_heap_free_pages
helpers in favor of direct calls to alloc_pages and __free_pages,
and remove the special handling in the system heap.

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