From: Stefano Stabellini Date: Tue, 11 Nov 2014 14:31:56 +0000 (+0000) Subject: xen/arm: if(pfn_valid(pfn)) call native dma_ops X-Git-Tag: omap-for-v3.20/drop-legacy-3517~118^2~23 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f91fc331ad495a3e602f3d0e7fd6211b1d91204;p=pandora-kernel.git xen/arm: if(pfn_valid(pfn)) call native dma_ops Remove code duplication in mm32.c by calling the native dma_ops if the page is a local page (not a foreign page). Use a simple pfn_valid(pfn) check to figure out if the page is local, exploiting the fact that dom0 is mapped 1:1, therefore pfn_valid always returns false when called on a foreign mfn. Suggested-by: Catalin Marinas Signed-off-by: Stefano Stabellini Reviewed-by: Catalin Marinas --- Reading git-diff-tree failed