]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Micro-optimize uma_small_alloc(). Replace bzero(..., PAGE_SIZE) by
authoralc <alc@FreeBSD.org>
Thu, 22 Oct 2020 17:47:51 +0000 (17:47 +0000)
committeralc <alc@FreeBSD.org>
Thu, 22 Oct 2020 17:47:51 +0000 (17:47 +0000)
commit4de91415ee73ab8214a652db7f488d7d14e8523e
tree11ca47df3c2f21f4f0bfc40ce9af7f3f9c690fe4
parent841f96045de537dd4e16e6491b02ecd34d96f78a
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