mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-30 21:54:50 +00:00
powerpc64: Align frequently used/exclusive data on cacheline boundaries
This is effectively a merge from amd64 of r312888, r323235, and r333486. I've been running this on my POWER9 Talos for some time now with no ill effects. Suggested by: mjg
This commit is contained in:
parent
65aee3a872
commit
290646564b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=338071
|
@ -69,6 +69,20 @@ SECTIONS
|
|||
.sbss2 : { *(.sbss2) }
|
||||
/* Adjust the address for the data segment to the next page up. */
|
||||
. = ALIGN(4096);
|
||||
.data.read_frequently :
|
||||
{
|
||||
*(SORT_BY_ALIGNMENT(.data.read_frequently))
|
||||
}
|
||||
.data.read_mostly :
|
||||
{
|
||||
*(.data.read_mostly)
|
||||
}
|
||||
. = ALIGN(128);
|
||||
.data.exclusive_cache_line :
|
||||
{
|
||||
*(.data.exclusive_cache_line)
|
||||
}
|
||||
. = ALIGN(128);
|
||||
.data :
|
||||
{
|
||||
*(.data)
|
||||
|
|
Loading…
Reference in a new issue