Make memreg_add() a bit smarter and have it merge adjacent regions.
authorkettenis <kettenis@openbsd.org>
Thu, 13 May 2021 16:08:16 +0000 (16:08 +0000)
committerkettenis <kettenis@openbsd.org>
Thu, 13 May 2021 16:08:16 +0000 (16:08 +0000)
commit9943f01e02d3f9ce4926343f17e5035f8f368cf3
tree11eb404360a30e01db40137bf36b98a952980a8b
parent91e971e46a05224f4684e2ff40d04bffede5e542
Make memreg_add() a bit smarter and have it merge adjacent regions.
This should reduce the number of physical memory segments that we pass
to uvm reducing the chance that we run out of physical memory segments
and should make physical memory allocation a bit more efficient.

ok patrick@
sys/arch/arm64/arm64/machdep.c