]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ion: Add carveout and chunk heaps to dummy driver
authorJohn Stultz <john.stultz@linaro.org>
Fri, 10 Jan 2014 05:08:38 +0000 (21:08 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Jan 2014 05:16:40 +0000 (21:16 -0800)
commit4c45b1a80ee9c85aee13445b85fd55541ec26d27
treecc7771abedfcb0dfa8dd31c616856a08c077c1ae
parent1184ead84d6c1019f5c1d31a73ef3bace90fb54a
ion: Add carveout and chunk heaps to dummy driver

Add support to the dummy driver for basic carveout and chunk heaps.

Since we're generating these heaps at module_init, and we want
this driver to be generic enough to be tested on any arch, we
don't have the ability to alloc bootmem, so both of these heaps
are conventionally allocated using alloc_pages(), which limits us
to 4M in size.

Should look into using CMA for heap allocation eventually, but
this provides enough to test the basic functionality of the
heaps.

Cc: Colin Cross <ccross@android.com>
Cc: Greg KH <gregkh@linuxfoundation.org>
Cc: Jesse Barker <jesse.barker@arm.com>
Cc: Android Kernel Team <kernel-team@android.com>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/ion/ion_dummy_driver.c