From: Matt Carlson Date: Wed, 24 Nov 2010 08:31:52 +0000 (+0000) Subject: tg3: use dma_alloc_coherent() instead of pci_alloc_consistent() X-Git-Tag: v2.6.38-rc1~476^2~467 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4bae65c892b4ff9a2797cbfa8526a5f9aaf1b2ed;p=pandora-kernel.git tg3: use dma_alloc_coherent() instead of pci_alloc_consistent() Using dma_alloc_coherent() permits to use GFP_KERNEL allocations instead of GFP_ATOMIC ones. Its better when a machine is out of memory, because this allows driver to sleep to get its memory and succeed its init, especially when allocating high order pages. Signed-off-by: Eric Dumazet Signed-off-by: Matt Carlson Reviewed-by: Michael Chan Signed-off-by: David S. Miller --- Reading git-diff-tree failed