Commit ae62d49c authored by Joerg Roedel's avatar Joerg Roedel

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: default avatarJoerg Roedel <jroedel@suse.de>
parent a0f51447
...@@ -124,6 +124,7 @@ struct aperture_range { ...@@ -124,6 +124,7 @@ struct aperture_range {
/* address allocation bitmap */ /* address allocation bitmap */
unsigned long *bitmap; unsigned long *bitmap;
unsigned long offset;
/* /*
* Array of PTE pages for the aperture. In this array we save all the * Array of PTE pages for the aperture. In this array we save all the
...@@ -132,8 +133,6 @@ struct aperture_range { ...@@ -132,8 +133,6 @@ struct aperture_range {
* just calculate its address in constant time. * just calculate its address in constant time.
*/ */
u64 *pte_pages[64]; u64 *pte_pages[64];
unsigned long offset;
}; };
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment