From: Glauber Costa Date: Tue, 8 Apr 2008 16:21:05 +0000 (-0300) Subject: x86: don't try to allocate from DMA zone at first X-Git-Tag: v2.6.26-rc1~1133^2~7 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8779f2fc3b84ebb6c5181fb13d702e9944c16069;p=linux-2.6 x86: don't try to allocate from DMA zone at first If we fail, we'll loop into the allocation again, and then allocate in the DMA zone. Signed-off-by: Glauber Costa Signed-off-by: Ingo Molnar Signed-off-by: Thomas Gleixner --- diff --git a/arch/x86/kernel/pci-dma_32.c b/arch/x86/kernel/pci-dma_32.c index 0600a37ba8..debe9119b7 100644 --- a/arch/x86/kernel/pci-dma_32.c +++ b/arch/x86/kernel/pci-dma_32.c @@ -82,9 +82,6 @@ void *dma_alloc_coherent(struct device *dev, size_t size, if (dma_alloc_from_coherent_mem(dev, size, dma_handle, &ret)) return ret; - if (dev == NULL || (dev->coherent_dma_mask < 0xffffffff)) - gfp |= GFP_DMA; - if (!dev) dev = &fallback_dev;