HomeFreeBSD

riscv: optimize MADV_WILLNEED on existing superpages

Description

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

(cherry picked from commit 95b1c27069775dd969cd045888b4ea5aeb53cb7f)

Details

Provenance
mhorneAuthored on Oct 5 2022, 5:10 PM
Reviewer
markj
Differential Revision
D36563: riscv: handle existing mapping in pmap_enter_l2()
Parents
rG80e991888d79: dhclient-script: cope with /32 address leases
Branches
Unknown
Tags
Unknown