gpu: ion: Switch to using kmalloc rather than kmap during allocation
authorRebecca Schultz Zavin <rebecca@android.com>
Fri, 13 Dec 2013 22:23:59 +0000 (14:23 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2013 16:55:38 +0000 (08:55 -0800)
commit708f0cac89d00c366d562265e0b0244cda6f903d
treea7a671a2c0d9fd86cead38b75fb2a475bddba76e
parentb82302438bbb496c76d5c4d64d82263253b0ac2b
gpu: ion: Switch to using kmalloc rather than kmap during allocation

Previously, metadata was stored in the allocated pages themselves
during allocation.  However the system can only have a limited
number of kmapped pages.  A very large allocation might exceed
this limit.

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