From: FUJITA Tomonori Date: Mon, 8 Sep 2008 09:10:14 +0000 (+0900) Subject: swiotlb: remove GFP_DMA hack in swiotlb_alloc_coherent X-Git-Tag: v2.6.28-rc1~712^2^4~56 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=68e91d61346db4359464d06617500141cfd1442a;p=karo-tx-linux.git swiotlb: remove GFP_DMA hack in swiotlb_alloc_coherent The callers are supposed to set up the gfp flags appropriately. Signed-off-by: FUJITA Tomonori Acked-by: Joerg Roedel Signed-off-by: Ingo Molnar --- diff --git a/lib/swiotlb.c b/lib/swiotlb.c index 977edbdbc1de..3066ffe1f9eb 100644 --- a/lib/swiotlb.c +++ b/lib/swiotlb.c @@ -467,13 +467,6 @@ swiotlb_alloc_coherent(struct device *hwdev, size_t size, void *ret; int order = get_order(size); - /* - * XXX fix me: the DMA API should pass us an explicit DMA mask - * instead, or use ZONE_DMA32 (ia64 overloads ZONE_DMA to be a ~32 - * bit range instead of a 16MB one). - */ - flags |= GFP_DMA; - ret = (void *)__get_free_pages(flags, order); if (ret && address_needs_mapping(hwdev, virt_to_bus(ret))) { /*