diff options
author | Jon Hunter <jonathanh@nvidia.com> | 2015-11-13 11:39:42 -0500 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2015-12-05 05:43:08 -0500 |
commit | 8fe9739bc3ed616fb8cf935fb5099051493c2424 (patch) | |
tree | e7cc76be63cca9a1015ecbc613e1837281c80584 | |
parent | 4aad5be04088d9b6c2783d5f0fb6b1ac7bbc45c1 (diff) |
dmaengine: tegra-apb: Update driver to use GFP_NOWAIT
The tegra20-apb-dma driver currently uses the flag GFP_ATOMIC when
allocating memory for structures used in conjunction with the DMA
descriptors. It is preferred that dmaengine drivers use GFP_NOWAIT
instead and so the emergency memory pool will not be used by these
drivers.
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
-rw-r--r-- | drivers/dma/tegra20-apb-dma.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/dma/tegra20-apb-dma.c b/drivers/dma/tegra20-apb-dma.c index d4cabd6931e5..754c1f54d4fe 100644 --- a/drivers/dma/tegra20-apb-dma.c +++ b/drivers/dma/tegra20-apb-dma.c | |||
@@ -296,7 +296,7 @@ static struct tegra_dma_desc *tegra_dma_desc_get( | |||
296 | spin_unlock_irqrestore(&tdc->lock, flags); | 296 | spin_unlock_irqrestore(&tdc->lock, flags); |
297 | 297 | ||
298 | /* Allocate DMA desc */ | 298 | /* Allocate DMA desc */ |
299 | dma_desc = kzalloc(sizeof(*dma_desc), GFP_ATOMIC); | 299 | dma_desc = kzalloc(sizeof(*dma_desc), GFP_NOWAIT); |
300 | if (!dma_desc) { | 300 | if (!dma_desc) { |
301 | dev_err(tdc2dev(tdc), "dma_desc alloc failed\n"); | 301 | dev_err(tdc2dev(tdc), "dma_desc alloc failed\n"); |
302 | return NULL; | 302 | return NULL; |
@@ -336,7 +336,7 @@ static struct tegra_dma_sg_req *tegra_dma_sg_req_get( | |||
336 | } | 336 | } |
337 | spin_unlock_irqrestore(&tdc->lock, flags); | 337 | spin_unlock_irqrestore(&tdc->lock, flags); |
338 | 338 | ||
339 | sg_req = kzalloc(sizeof(struct tegra_dma_sg_req), GFP_ATOMIC); | 339 | sg_req = kzalloc(sizeof(struct tegra_dma_sg_req), GFP_NOWAIT); |
340 | if (!sg_req) | 340 | if (!sg_req) |
341 | dev_err(tdc2dev(tdc), "sg_req alloc failed\n"); | 341 | dev_err(tdc2dev(tdc), "sg_req alloc failed\n"); |
342 | return sg_req; | 342 | return sg_req; |