aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/xen
diff options
context:
space:
mode:
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>2014-11-11 06:14:51 -0500
committerDavid Vrabel <david.vrabel@citrix.com>2014-12-04 07:41:47 -0500
commit35e0be88c426e8d2d6a4ed91d80ea25d73d127aa (patch)
tree19fd96b769cd54158d9d018d42ddb8c265736688 /arch/arm/xen
parente9e87eb3f9180b2b0470409b24fb39b8a1941520 (diff)
xen/arm: remove outer_*_range call
Dom0 is not actually capable of issuing outer_inv_range or outer_clean_range calls. Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Acked-by: Ian Campbell <ian.campbell@citrix.com> Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm/xen')
-rw-r--r--arch/arm/xen/mm32.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/arch/arm/xen/mm32.c b/arch/arm/xen/mm32.c
index a5a93fce913b..6153d61f0907 100644
--- a/arch/arm/xen/mm32.c
+++ b/arch/arm/xen/mm32.c
@@ -61,9 +61,6 @@ static void __xen_dma_page_dev_to_cpu(struct device *hwdev, dma_addr_t handle,
61 /* Cannot use __dma_page_dev_to_cpu because we don't have a 61 /* Cannot use __dma_page_dev_to_cpu because we don't have a
62 * struct page for handle */ 62 * struct page for handle */
63 63
64 if (dir != DMA_TO_DEVICE)
65 outer_inv_range(handle, handle + size);
66
67 dma_cache_maint(handle & PAGE_MASK, handle & ~PAGE_MASK, size, dir, dmac_unmap_area); 64 dma_cache_maint(handle & PAGE_MASK, handle & ~PAGE_MASK, size, dir, dmac_unmap_area);
68} 65}
69 66
@@ -72,12 +69,6 @@ static void __xen_dma_page_cpu_to_dev(struct device *hwdev, dma_addr_t handle,
72{ 69{
73 70
74 dma_cache_maint(handle & PAGE_MASK, handle & ~PAGE_MASK, size, dir, dmac_map_area); 71 dma_cache_maint(handle & PAGE_MASK, handle & ~PAGE_MASK, size, dir, dmac_map_area);
75
76 if (dir == DMA_FROM_DEVICE) {
77 outer_inv_range(handle, handle + size);
78 } else {
79 outer_clean_range(handle, handle + size);
80 }
81} 72}
82 73
83void xen_dma_unmap_page(struct device *hwdev, dma_addr_t handle, 74void xen_dma_unmap_page(struct device *hwdev, dma_addr_t handle,