summaryrefslogtreecommitdiff
path: root/drivers/iommu/amd_iommu.c
diff options
context:
space:
mode:
authorJoerg Roedel <jroedel@suse.de>2015-12-21 16:28:45 +0100
committerJoerg Roedel <jroedel@suse.de>2015-12-28 17:18:51 +0100
commitae62d49c7a9303de868f4925d020719d00686411 (patch)
tree0358d8453787d21917185baaa42677fad8b6fee2 /drivers/iommu/amd_iommu.c
parenta0f51447f4accd8f0f9420d8e617dd4e371504d7 (diff)
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 <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/amd_iommu.c')
-rw-r--r--drivers/iommu/amd_iommu.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/iommu/amd_iommu.c b/drivers/iommu/amd_iommu.c
index be0e81aff3bc..2a22515f5a8b 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;
};
/*