diff options
author | Yinghai Lu <Yinghai.Lu@Sun.COM> | 2007-07-16 02:41:41 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-16 12:05:51 -0400 |
commit | 2618c60b8b5836b73e8deb385a036820744d256d (patch) | |
tree | e4f9f1a64f5d40992b68707a0156fbe5b6b09c6d | |
parent | d375b97037c40d51b41d3b00b15729f6730c2cfe (diff) |
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 <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: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | drivers/base/dmapool.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, | |||
127 | } else if (allocation < size) | 127 | } else if (allocation < size) |
128 | return NULL; | 128 | return NULL; |
129 | 129 | ||
130 | if (!(retval = kmalloc (sizeof *retval, GFP_KERNEL))) | 130 | if (!(retval = kmalloc_node (sizeof *retval, GFP_KERNEL, dev_to_node(dev)))) |
131 | return retval; | 131 | return retval; |
132 | 132 | ||
133 | strlcpy (retval->name, name, sizeof retval->name); | 133 | strlcpy (retval->name, name, sizeof retval->name); |