diff options
author | Alex Shi <alex.shi@linaro.org> | 2014-04-25 15:44:21 +0800 |
---|---|---|
committer | Alex Shi <alex.shi@linaro.org> | 2014-04-25 15:44:21 +0800 |
commit | 22d2266cff16067c0142938062d22a89b8dfa348 (patch) | |
tree | 7b94457dc15352f10e7b65ea72791cf7f133763f /mm | |
parent | 8acfe32cb8716b76814e9a7c964354b91e5ce886 (diff) | |
parent | 9d35f5cdf5acf7171583308d750927e3b903f4ef (diff) |
Merge branch 'linux-linaro-lsk' into linux-linaro-lsk-android
Diffstat (limited to 'mm')
-rw-r--r-- | mm/Kconfig | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/mm/Kconfig b/mm/Kconfig index e742d06285b7..26a5f815cfc3 100644 --- a/mm/Kconfig +++ b/mm/Kconfig @@ -477,3 +477,27 @@ config FRONTSWAP and swap data is stored as normal on the matching swap device. If unsure, say Y to enable frontswap. + +config CMA + bool "Contiguous Memory Allocator" + depends on HAVE_MEMBLOCK + select MIGRATION + select MEMORY_ISOLATION + help + This enables the Contiguous Memory Allocator which allows other + subsystems to allocate big physically-contiguous blocks of memory. + CMA reserves a region of memory and allows only movable pages to + be allocated from it. This way, the kernel can use the memory for + pagecache and when a subsystem requests for contiguous area, the + allocated pages are migrated away to serve the contiguous request. + + If unsure, say "n". + +config CMA_DEBUG + bool "CMA debug messages (DEVELOPMENT)" + depends on DEBUG_KERNEL && CMA + help + Turns on debug messages in CMA. This produces KERN_DEBUG + messages for every CMA call as well as various messages while + processing calls such as dma_alloc_from_contiguous(). + This option does not affect warning and error messages. |