From: Joerg Roedel Date: Mon, 21 Dec 2015 15:28:45 +0000 (+0100) Subject: iommu/amd: Move aperture_range.offset to another cache-line X-Git-Tag: v4.14-rc1~3980^2^7~16 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ae62d49c7a9303de868f4925d020719d00686411;p=platform%2Fkernel%2Flinux-rpi.git iommu/amd: Move aperture_range.offset to another cache-line Moving it before the pte_pages array puts in into the same cache-line as the spin-lock and the bitmap array pointer. This should safe a cache-miss. Signed-off-by: Joerg Roedel --- diff --git a/drivers/iommu/amd_iommu.c b/drivers/iommu/amd_iommu.c index be0e81a..2a22515 100644 --- a/drivers/iommu/amd_iommu.c +++ b/drivers/iommu/amd_iommu.c @@ -124,6 +124,7 @@ struct aperture_range { /* address allocation bitmap */ unsigned long *bitmap; + unsigned long offset; /* * Array of PTE pages for the aperture. In this array we save all the @@ -132,8 +133,6 @@ struct aperture_range { * just calculate its address in constant time. */ u64 *pte_pages[64]; - - unsigned long offset; }; /*