summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSakari Ailus <sakari.ailus@linux.intel.com>2015-09-30 03:07:02 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-10-04 13:46:06 +0200
commit09e8b485ee4212f78bf27c8d727845919f85cf1f (patch)
tree15b9f7aa603afef35f57a40e84f1af0dd3182c35 /include
parentmisc/genwqe: get rid of atomic allocations (diff)
downloadlinux-09e8b485ee4212f78bf27c8d727845919f85cf1f.tar.xz
linux-09e8b485ee4212f78bf27c8d727845919f85cf1f.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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
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);