diff options
Diffstat (limited to 'drivers/dma/dmaengine.c')
-rw-r--r-- | drivers/dma/dmaengine.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/dma/dmaengine.c b/drivers/dma/dmaengine.c index f1a441ab395d..3a11b1092e80 100644 --- a/drivers/dma/dmaengine.c +++ b/drivers/dma/dmaengine.c | |||
@@ -63,6 +63,7 @@ | |||
63 | #include <linux/acpi_dma.h> | 63 | #include <linux/acpi_dma.h> |
64 | #include <linux/of_dma.h> | 64 | #include <linux/of_dma.h> |
65 | #include <linux/mempool.h> | 65 | #include <linux/mempool.h> |
66 | #include <linux/numa.h> | ||
66 | 67 | ||
67 | static DEFINE_MUTEX(dma_list_mutex); | 68 | static DEFINE_MUTEX(dma_list_mutex); |
68 | static DEFINE_IDA(dma_ida); | 69 | static DEFINE_IDA(dma_ida); |
@@ -386,7 +387,8 @@ EXPORT_SYMBOL(dma_issue_pending_all); | |||
386 | static bool dma_chan_is_local(struct dma_chan *chan, int cpu) | 387 | static bool dma_chan_is_local(struct dma_chan *chan, int cpu) |
387 | { | 388 | { |
388 | int node = dev_to_node(chan->device->dev); | 389 | int node = dev_to_node(chan->device->dev); |
389 | return node == -1 || cpumask_test_cpu(cpu, cpumask_of_node(node)); | 390 | return node == NUMA_NO_NODE || |
391 | cpumask_test_cpu(cpu, cpumask_of_node(node)); | ||
390 | } | 392 | } |
391 | 393 | ||
392 | /** | 394 | /** |