]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/x86/kernel/pci-calgary_64.c
x86: avoid unnecessary low zone allocation in Calgary's alloc_coherent
[linux-2.6-omap-h63xx.git] / arch / x86 / kernel / pci-calgary_64.c
index 8415d92853c4a474ba486912fd40808b6ecebcf4..fe7695e4caae738abb1438ecde5f159adb00514d 100644 (file)
@@ -491,6 +491,8 @@ static void* calgary_alloc_coherent(struct device *dev, size_t size,
        npages = size >> PAGE_SHIFT;
        order = get_order(size);
 
+       flag &= ~(__GFP_DMA | __GFP_HIGHMEM | __GFP_DMA32);
+
        /* alloc enough pages (and possibly more) */
        ret = (void *)__get_free_pages(flag, order);
        if (!ret)