ion: Add carveout and chunk heaps to dummy driver
authorJohn Stultz <john.stultz@linaro.org>
Sat, 23 Nov 2013 03:45:31 +0000 (19:45 -0800)
committerJohn Stultz <john.stultz@linaro.org>
Tue, 14 Jan 2014 20:48:16 +0000 (12:48 -0800)
commitec0700adad5625639db1cacc32e2f20c0d627413
tree215ba9bc0f6935ff57b41ebd675f87afac252ad7
parent984f4ccce87f652d2effeb5cbaf87a9c16c869d9
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>
drivers/staging/android/ion/ion_dummy_driver.c