]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] IB/mthca: Use dma_alloc_coherent instead of pci_alloc_consistent
authorRoland Dreier <roland@topspin.com>
Mon, 27 Jun 2005 21:36:40 +0000 (14:36 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 27 Jun 2005 22:11:44 +0000 (15:11 -0700)
commitec01740e0c6bf8e7f962c09524ca6e5ad810758a
tree919ca8d2ea8567a1de4bba989a123b77340b989a
parentb3e46000857cef58cee9622be064aa8f959254e5
[PATCH] IB/mthca: Use dma_alloc_coherent instead of pci_alloc_consistent

Switch all allocations of coherent memory from pci_alloc_consistent() to
dma_alloc_coherent(), so that we can pass GFP_KERNEL.  This should help when
the system is low on memory.

Signed-off-by: Roland Dreier <roland@topspin.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/infiniband/hw/mthca/mthca_cq.c
drivers/infiniband/hw/mthca/mthca_eq.c
drivers/infiniband/hw/mthca/mthca_qp.c