gpu: ion: Modify zeroing code so it only allocates address space once
authorRebecca Schultz Zavin <rschultz@google.com>
Fri, 13 Dec 2013 22:24:31 +0000 (14:24 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2013 16:55:41 +0000 (08:55 -0800)
commit77cbe828a10026f8ff208eaa67d75675a3ffbdfc
tree009aa55cd061f26906f295423015e185229de783
parent2bb9f5034ec75ea40068e4a462cde882ce9f5a1e
gpu: ion: Modify zeroing code so it only allocates address space once

vmap/vunmap spend a significant amount of time allocating the
address space to map into.  Rather than allocating address space
for each page, instead allocate once for the entire allocation
and then just map and unmap each page into that address space.

Signed-off-by: Rebecca Schultz Zavin <rschultz@google.com>
[jstultz: modified patch to apply to staging directory]
Signed-off-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/ion/ion_system_heap.c