]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
riscv: optimize MADV_WILLNEED on existing superpages
authorMitchell Horne <mhorne@FreeBSD.org>
Wed, 5 Oct 2022 17:10:45 +0000 (14:10 -0300)
committerMitchell Horne <mhorne@FreeBSD.org>
Thu, 6 Oct 2022 22:02:38 +0000 (19:02 -0300)
commit95b1c27069775dd969cd045888b4ea5aeb53cb7f
tree7f975675c7096406e801eb662c5599bd4e0b95e9
parentdd18b62cec6228c17aef428a575f44152ea55d53
riscv: optimize MADV_WILLNEED on existing superpages

Specifically, avoid pointless calls to pmap_enter_quick_locked() when
madvise(MADV_WILLNEED) is applied to an existing superpage mapping.

1d5ebad06c20 made the change for amd64 and arm64.

Reviewed by: markj, alc
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D36563
sys/riscv/riscv/pmap.c