projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7139a2e
)
iommu/amd: Don't allocate with __GFP_ZERO in alloc_coherent
author
Joerg Roedel
<jroedel@suse.de>
Wed, 1 Apr 2015 12:58:46 +0000
(14:58 +0200)
committer
Joerg Roedel
<jroedel@suse.de>
Thu, 2 Apr 2015 11:31:07 +0000
(13:31 +0200)
Don't explicitly add __GFP_ZERO to the allocator flags.
Leave this up to the caller.
Tested-by: Suravee Suthikulpanit <Suravee.Suthikulpanit@amd.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd_iommu.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/iommu/amd_iommu.c
b/drivers/iommu/amd_iommu.c
index 994cc7dbb8330c779df56db6b008f0cbb4dff80e..c2e6f13d148fc7c2cd0c010bcadb21850acbc97f 100644
(file)
--- a/
drivers/iommu/amd_iommu.c
+++ b/
drivers/iommu/amd_iommu.c
@@
-2931,7
+2931,6
@@
static void *alloc_coherent(struct device *dev, size_t size,
dma_mask = dev->coherent_dma_mask;
flag &= ~(__GFP_DMA | __GFP_HIGHMEM | __GFP_DMA32);
- flag |= __GFP_ZERO;
virt_addr = (void *)__get_free_pages(flag, get_order(size));
if (!virt_addr)