]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
x86: don't try to allocate from DMA zone at first
authorGlauber Costa <gcosta@redhat.com>
Tue, 8 Apr 2008 16:21:05 +0000 (13:21 -0300)
committerIngo Molnar <mingo@elte.hu>
Sat, 19 Apr 2008 17:19:58 +0000 (19:19 +0200)
If we fail, we'll loop into the allocation again,
and then allocate in the DMA zone.

Signed-off-by: Glauber Costa <gcosta@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/pci-dma_32.c

index 0600a37ba835753422851c1446aaa5b29055aa24..debe9119b7241ecbce6fa0992975f079b5a24aad 100644 (file)
@@ -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;