]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Micro-optimize uma_small_alloc(). Replace bzero(..., PAGE_SIZE) by
authorAlan Cox <alc@FreeBSD.org>
Thu, 22 Oct 2020 17:47:51 +0000 (17:47 +0000)
committerAlan Cox <alc@FreeBSD.org>
Thu, 22 Oct 2020 17:47:51 +0000 (17:47 +0000)
commit9e0ad88b8280923d4a210efa2cee2e1f29a34354
tree11ca47df3c2f21f4f0bfc40ce9af7f3f9c690fe4
parent7cda7375e629cf6c6d072b1de0510165be1e529d
Micro-optimize uma_small_alloc().  Replace bzero(..., PAGE_SIZE) by
pagezero().  Ultimately, they use the same method for bulk zeroing, but
the generality of bzero() requires size and alignment checks that
pagezero() does not.

Eliminate an unnecessary #include.

Reviewed by: emaste, markj
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D26876
sys/arm64/arm64/uma_machdep.c