]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r305213,305319,305398
authoralc <alc@FreeBSD.org>
Sat, 1 Oct 2016 19:30:28 +0000 (19:30 +0000)
committeralc <alc@FreeBSD.org>
Sat, 1 Oct 2016 19:30:28 +0000 (19:30 +0000)
commitef0b439c822bffc80175b9dfb78957bb807d576d
tree0160d2729d42e24c2952c09ab03d4166a8895bd1
parentc83481c3142b3f842f75e35f0359ab1e4a918a1c
MFC r305213,305319,305398
  As an optimization to the machine-independent layer, change the machine-
  dependent pmap_ts_referenced() so that it updates the page's dirty field
  if a modified bit is found while counting reference bits.  This
  opportunistic update can be performed at low cost and can eliminate the
  need for some future calls to pmap_is_modified() by the machine-
  independent layer.

  Replace the number 4 in sparc64's pmap_ts_referenced() by
  PMAP_TS_REFERENCED_MAX, like we've done elsewhere, e.g., amd64.
sys/amd64/amd64/pmap.c
sys/arm/arm/pmap-v6.c
sys/i386/i386/pmap.c
sys/sparc64/sparc64/pmap.c