Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2618c60b authored by Yinghai Lu's avatar Yinghai Lu Committed by Linus Torvalds
Browse files

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: default avatarYinghai Lu <yinghai.lu@sun.com>
Cc: Andi Kleen <ak@suse.de>
Cc: Christoph Lameter <clameter@sgi.com>
Cc: David Rientjes <rientjes@google.com>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent d375b970
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);