projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4099818
)
iommu/core: Use PAGE_SIZE instead of hard-coded value
author
Joerg Roedel
<joerg.roedel@amd.com>
Tue, 6 Sep 2011 12:36:17 +0000
(14:36 +0200)
committer
Joerg Roedel
<joerg.roedel@amd.com>
Tue, 6 Sep 2011 12:36:17 +0000
(14:36 +0200)
Replace the hard-coded 4kb by PAGE_SIZE to make iommu-api
implementations possible on architectures where
PAGE_SIZE != 4kb.
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
drivers/iommu/iommu.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/iommu/iommu.c
b/drivers/iommu/iommu.c
index e61a9bad6df3827d2cccbc41e48fdcd86a6c4c52..30b06449748636bc8b4da767570b8daa65d60844 100644
(file)
--- a/
drivers/iommu/iommu.c
+++ b/
drivers/iommu/iommu.c
@@
-100,7
+100,7
@@
int iommu_map(struct iommu_domain *domain, unsigned long iova,
{
size_t size;
- size =
0x1000UL
<< gfp_order;
+ size =
PAGE_SIZE
<< gfp_order;
BUG_ON(!IS_ALIGNED(iova | paddr, size));
@@
-112,7
+112,7
@@
int iommu_unmap(struct iommu_domain *domain, unsigned long iova, int gfp_order)
{
size_t size;
- size =
0x1000UL
<< gfp_order;
+ size =
PAGE_SIZE
<< gfp_order;
BUG_ON(!IS_ALIGNED(iova, size));