summaryrefslogtreecommitdiffstats
path: root/sys/amd64
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2012-06-28 22:03:59 +0000
committeralc <alc@FreeBSD.org>2012-06-28 22:03:59 +0000
commit44ab6b30531a8884c2b22b9cc6a4e489690bf27b (patch)
tree593444bf0b71be94e240ca5fb4af4894f8cee5da /sys/amd64
parentda17d879d75861ec67ee41b1353de484de57ec28 (diff)
downloadFreeBSD-src-44ab6b30531a8884c2b22b9cc6a4e489690bf27b.zip
FreeBSD-src-44ab6b30531a8884c2b22b9cc6a4e489690bf27b.tar.gz
Avoid some unnecessary PV list locking in pmap_enter().
Diffstat (limited to 'sys/amd64')
-rw-r--r--sys/amd64/amd64/pmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c
index fff27dc..16eeb95 100644
--- a/sys/amd64/amd64/pmap.c
+++ b/sys/amd64/amd64/pmap.c
@@ -3570,7 +3570,7 @@ validate:
if ((newpte & PG_RW) == 0)
invlva = TRUE;
}
- if ((origpte & PG_MANAGED) != 0) {
+ if ((om->aflags & PGA_WRITEABLE) != 0) {
CHANGE_PV_LIST_LOCK_TO_VM_PAGE(&lock, om);
if (TAILQ_EMPTY(&om->md.pv_list) &&
((om->flags & PG_FICTITIOUS) != 0 ||
OpenPOWER on IntegriCloud