generic: per-device coherent dma allocator

Currently x86_32, sh and cris-v32 provide per-device coherent dma
memory allocator.

However their implementation is nearly identical. Refactor out
common code to be reused by them.

Signed-off-by: Dmitry Baryshkov <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
This commit is contained in:
Dmitry Baryshkov 2008-06-29 14:18:46 +04:00 • committed by Ingo Molnar
commit ee7e5516be
4 changed files with 164 additions and 0 deletions

View file

@ -802,6 +802,10 @@ config PROC_PAGE_MONITOR
endmenu # General setup
config HAVE_GENERIC_DMA_COHERENT
bool
default n
config SLABINFO
bool
depends on PROC_FS