]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Restructure cache_handle_range to avoid repeated barriers. Specifically,
authoralc <alc@FreeBSD.org>
Fri, 5 Jul 2019 20:01:06 +0000 (20:01 +0000)
committeralc <alc@FreeBSD.org>
Fri, 5 Jul 2019 20:01:06 +0000 (20:01 +0000)
commit1b381cfc3ca55ac35dcb6e7eee70efd8b292ec42
tree9fb5445373401441dfb7c5d680d535cee4bc2758
parentd707ae5ef803af1baf2150744e0fa795a30bac1f
Restructure cache_handle_range to avoid repeated barriers.  Specifically,
restructure cache_handle_range so that all of the data cache operations are
performed before any instruction cache operations.  Then, we only need one
barrier between the data and instruction cache operations and one barrier
after the instruction cache operations.

On an Amazon EC2 a1.2xlarge instance, this simple change reduces the time
for a "make -j8 buildworld" by 9%.

Reviewed by: andrew
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D20848
sys/arm64/arm64/cpufunc_asm.S