]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitad295717cea0e88b9e875e1d5705585e0a8db849
treee08b71e79ee55907946018407b7310031bc05f7a
parent6abda3deb36f619059575a26a025e426d2dc6341
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