lkml.org 
[lkml]   [2008]   [Apr]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 23/28] x86: don't try to allocate from DMA zone at first
    Date
    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>
    ---
    arch/x86/kernel/pci-dma_32.c | 3 ---
    1 files changed, 0 insertions(+), 3 deletions(-)

    diff --git a/arch/x86/kernel/pci-dma_32.c b/arch/x86/kernel/pci-dma_32.c
    index 0e9ec11..11f100a 100644
    --- a/arch/x86/kernel/pci-dma_32.c
    +++ b/arch/x86/kernel/pci-dma_32.c
    @@ -84,9 +84,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;

    --
    1.5.0.6


    \
     
     \ /
      Last update: 2008-04-08 18:43    [W:2.231 / U:0.164 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site