diff options
author | Christoph Hellwig <hch@lst.de> | 2017-12-22 11:55:23 +0100 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2018-01-15 09:35:11 +0100 |
commit | 21f237e4d08511eb662b59d8ff1b64be68e0c2bc (patch) | |
tree | d886317cfa633c5b994c069d263119c670e35d71 /lib/dma-direct.c | |
parent | 080321d3b3139b3b3ec0da31a7887eebd50b5979 (diff) | |
download | op-kernel-dev-21f237e4d08511eb662b59d8ff1b64be68e0c2bc.zip op-kernel-dev-21f237e4d08511eb662b59d8ff1b64be68e0c2bc.tar.gz |
dma-direct: use node local allocations for coherent memory
To preserve the x86 behavior.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Diffstat (limited to 'lib/dma-direct.c')
-rw-r--r-- | lib/dma-direct.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dma-direct.c b/lib/dma-direct.c index a9ae98b..f04a424 100644 --- a/lib/dma-direct.c +++ b/lib/dma-direct.c @@ -38,7 +38,7 @@ static void *dma_direct_alloc(struct device *dev, size_t size, if (gfpflags_allow_blocking(gfp)) page = dma_alloc_from_contiguous(dev, count, page_order, gfp); if (!page) - page = alloc_pages(gfp, page_order); + page = alloc_pages_node(dev_to_node(dev), gfp, page_order); if (!page) return NULL; |