ion: add helper to zero contiguous region of pages
authorColin Cross <ccross@android.com>
Sat, 14 Dec 2013 03:26:30 +0000 (19:26 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2013 16:59:54 +0000 (08:59 -0800)
commitdf6cf5c8af54e3e89643511272f6f5f5cfb71a7d
tree4d4ee635a5bd06ab9260b04ec74cac7ba54e2b9f
parented5bf01aac7a524a1ca05f96947aeba8363cb669
ion: add helper to zero contiguous region of pages

Add ion_heap_pages_zero for ion heaps to use to zero pages
during initialization or allocation, when a struct ion_buffer
may not be available.  Use it from the chunk heap and carveout
heaps.

Signed-off-by: Colin Cross <ccross@android.com>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/ion/ion_carveout_heap.c
drivers/staging/android/ion/ion_chunk_heap.c
drivers/staging/android/ion/ion_heap.c
drivers/staging/android/ion/ion_priv.h