diff options
author | Marek Szyprowski <[email protected]> | 2011-12-29 13:09:51 +0100 |
---|---|---|
committer | Marek Szyprowski <[email protected]> | 2012-05-21 15:09:37 +0200 |
commit | c64be2bb1c6eb43c838b2c6d57b074078be208dd (patch) | |
tree | d0720eda4a440ff91f3296b0f90cc53ac514d4b9 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 49f223a9cd96c7293d7258ff88c2bdf83065f69c (diff) |
drivers: add Contiguous Memory Allocator
The Contiguous Memory Allocator is a set of helper functions for DMA
mapping framework that improves allocations of contiguous memory chunks.
CMA grabs memory on system boot, marks it with MIGRATE_CMA migrate type
and gives back to the system. Kernel is allowed to allocate only movable
pages within CMA's managed memory so that it can be used for example for
page cache when DMA mapping do not use it. On
dma_alloc_from_contiguous() request such pages are migrated out of CMA
area to free required contiguous block and fulfill the request. This
allows to allocate large contiguous chunks of memory at any time
assuming that there is enough free memory available in the system.
This code is heavily based on earlier works by Michal Nazarewicz.
Signed-off-by: Marek Szyprowski <[email protected]>
Signed-off-by: Kyungmin Park <[email protected]>
Signed-off-by: Michal Nazarewicz <[email protected]>
Acked-by: Arnd Bergmann <[email protected]>
Tested-by: Rob Clark <[email protected]>
Tested-by: Ohad Ben-Cohen <[email protected]>
Tested-by: Benjamin Gaignard <[email protected]>
Tested-by: Robert Nelson <[email protected]>
Tested-by: Barry Song <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions