summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSakari Ailus <sakari.ailus@linux.intel.com>2015-07-13 13:31:28 +0200
committerDavid Woodhouse <David.Woodhouse@intel.com>2015-07-28 16:47:58 +0200
commitae1ff3d623905947158fd3394854c23026337810 (patch)
treef4dbf8564370339f17021f74bfe37043e23f7872 /include
parentiommu/iova: Avoid over-allocating when size-aligned (diff)
downloadlinux-ae1ff3d623905947158fd3394854c23026337810.tar.xz
linux-ae1ff3d623905947158fd3394854c23026337810.zip
iommu: iova: Move iova cache management to the iova library
This is necessary to separate intel-iommu from the iova library. Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/iova.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/iova.h b/include/linux/iova.h
index 3920a19d8194..92f7177db2ce 100644
--- a/include/linux/iova.h
+++ b/include/linux/iova.h
@@ -68,8 +68,8 @@ static inline unsigned long iova_pfn(struct iova_domain *iovad, dma_addr_t iova)
return iova >> iova_shift(iovad);
}
-int iommu_iova_cache_init(void);
-void iommu_iova_cache_destroy(void);
+int iova_cache_get(void);
+void iova_cache_put(void);
struct iova *alloc_iova_mem(void);
void free_iova_mem(struct iova *iova);