]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Various changes to pmap_ts_referenced()
authorAlan Cox <alc@FreeBSD.org>
Sat, 10 Sep 2016 16:49:25 +0000 (16:49 +0000)
committerAlan Cox <alc@FreeBSD.org>
Sat, 10 Sep 2016 16:49:25 +0000 (16:49 +0000)
commit8cb0c1029dad09eb34dd8c3326e13c9ffc680030
tree34f04004342901015194140ec9bd3fb06ed33f73
parenta27815330cdbe9cadfe2b4a3e761ed9093d0f374
Various changes to pmap_ts_referenced()

Move PMAP_TS_REFERENCED_MAX out of the various pmap implementations and
into vm/pmap.h, and describe what its purpose is.  Eliminate the archaic
"XXX" comment about its value.  I don't believe that its exact value, e.g.,
5 versus 6, matters.

Update the arm64 and riscv pmap implementations of pmap_ts_referenced()
to opportunistically update the page's dirty field.

On amd64, use the PDE value already cached in a local variable rather than
dereferencing a pointer again and again.

Reviewed by: kib, markj
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D7836
sys/amd64/amd64/pmap.c
sys/arm/arm/pmap-v6.c
sys/arm64/arm64/pmap.c
sys/i386/i386/pmap.c
sys/powerpc/booke/pmap.c
sys/riscv/riscv/pmap.c
sys/sparc64/sparc64/pmap.c
sys/vm/pmap.h