swiotlb: allow architectures to override swiotlb pool allocation
commit8c5df16bec8a60bb8589fc232b9e26cac0ed4b2c
authorJeremy Fitzhardinge <jeremy@goop.org>
Tue, 16 Dec 2008 20:17:26 +0000 (16 12:17 -0800)
committerIngo Molnar <mingo@elte.hu>
Tue, 16 Dec 2008 20:31:38 +0000 (16 21:31 +0100)
treeb85d46d552ba86da332ebad328761998171332c5
parenta79b7a2a758c39315344f0d86b5adb21d90d786e
swiotlb: allow architectures to override swiotlb pool allocation

Impact: generalize swiotlb allocation code

Architectures may need to allocate memory specially for use with
the swiotlb.  Create the weak function swiotlb_alloc_boot() and
swiotlb_alloc() defaulting to the current behaviour.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/linux/swiotlb.h
lib/swiotlb.c