xen/arm: simplify dma_cache_maint
authorChristoph Hellwig <hch@lst.de>
Wed, 24 Jul 2019 13:26:08 +0000 (15:26 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 11 Sep 2019 10:43:26 +0000 (12:43 +0200)
commitefcd5729d97cd19d32911ffdf478bb86ae8e818f
tree1eb2818fbcc8db3e77d9067796f6a1ab2ed6f0f1
parenta8e6d950cdc1012aede8a84d85f902a53d895174
xen/arm: simplify dma_cache_maint

Calculate the required operation in the caller, and pass it directly
instead of recalculating it for each page, and use simple arithmetics
to get from the physical address to Xen page size aligned chunks.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
arch/arm/xen/mm.c