From: Yinghai Lu Date: Mon, 16 Jul 2007 06:41:41 +0000 (-0700) Subject: dma: make dma pool to use kmalloc_node X-Git-Tag: MMI-PSA29.97-13-9~42007 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2618c60b8b5836b73e8deb385a036820744d256d;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git dma: make dma pool to use kmalloc_node Using dev_to_node(&dev->dev) to get node, and kmalloc_node to dma buffer on corresponding node dma pool Signed-off-by: Yinghai Lu Cc: Andi Kleen Cc: Christoph Lameter Cc: David Rientjes Cc: Greg KH Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/base/dmapool.c b/drivers/base/dmapool.c index 91970e9bb05e..7647abfe1890 100644 --- a/drivers/base/dmapool.c +++ b/drivers/base/dmapool.c @@ -127,7 +127,7 @@ dma_pool_create (const char *name, struct device *dev, } else if (allocation < size) return NULL; - if (!(retval = kmalloc (sizeof *retval, GFP_KERNEL))) + if (!(retval = kmalloc_node (sizeof *retval, GFP_KERNEL, dev_to_node(dev)))) return retval; strlcpy (retval->name, name, sizeof retval->name);