gpu: ion: use vmalloc to allocate page array to map kernel
authorRebecca Schultz Zavin <rebecca@android.com>
Sun, 30 Sep 2012 21:53:27 +0000 (14:53 -0700)
committerArve Hjønnevåg <arve@android.com>
Mon, 1 Jul 2013 21:16:08 +0000 (14:16 -0700)
commit402320a6232db509fbfe18877e38dead1004adf8
treebf432221d88fe3648b7f1c831149603bbb3906c9
parent74396c47a7454c52271b9e2a4787c440224ca2d6
gpu: ion: use vmalloc to allocate page array to map kernel

When ion_map_kernel is execute the system must allocate
an array large enough to hold a pointer to each page in
the buffer.  If the buffer is very large and the system
memory has become very fragmented, there may not be
sufficient high order allocations available from kmalloc.
Use vmalloc instead.

Change-Id: I5fabf79be6cfd158f7805bfca6267a60c4708582
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
drivers/gpu/ion/ion_system_heap.c