staging: ion: optimize struct ion_system_heap
authorHeesub Shin <heesub.shin@samsung.com>
Fri, 30 May 2014 01:26:30 +0000 (10:26 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jun 2014 22:38:33 +0000 (15:38 -0700)
commit6944561ece14d865238d14e40da858efb29dc2e8
treee08b71e79ee55907946018407b7310031bc05f7a
parent06566f5dc3f30e74de9e7bee4da6aad9ca35f287
staging: ion: optimize struct ion_system_heap

struct ion_system_heap has an array for storing pointers to page pools
and it is allocated separately from the containing structure. There is
no point in allocating those two small objects individually, bothering
slab allocator. Using a variable length array simplifies code lines and
reduces overhead to the slab.

Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Reviewed-by: Mitchel Humpherys <mitchelh@codeaurora.org>
Tested-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/ion/ion_system_heap.c