Commit 8779f2fc authored by Glauber Costa's avatar Glauber Costa Committed by Ingo Molnar

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: default avatarGlauber Costa <gcosta@redhat.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 45a07e77
...@@ -82,9 +82,6 @@ void *dma_alloc_coherent(struct device *dev, size_t size, ...@@ -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)) if (dma_alloc_from_coherent_mem(dev, size, dma_handle, &ret))
return ret; return ret;
if (dev == NULL || (dev->coherent_dma_mask < 0xffffffff))
gfp |= GFP_DMA;
if (!dev) if (!dev)
dev = &fallback_dev; dev = &fallback_dev;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment