]> git.karo-electronics.de Git - linux-beck.git/commit
gpu: ion: use vmalloc to allocate page array to map kernel
authorRebecca Schultz Zavin <rebecca@android.com>
Fri, 13 Dec 2013 22:24:09 +0000 (14:24 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2013 16:55:39 +0000 (08:55 -0800)
commit98d5d5f8bad43770803a08e5a969cc9d8200b681
tree79f93517ab9b3eca8dd81b9ce68c08222bb3fa70
parentb0599c014028eb19d0e0b2cd82390555a8eef22d
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.

Signed-off-by: Rebecca Schultz Zavin <rebecca@android.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