svn commit: r322800 - head/sys/arm64/arm64
Andrew Turner
andrew at FreeBSD.org
Tue Aug 22 18:20:26 UTC 2017
Author: andrew
Date: Tue Aug 22 18:20:25 2017
New Revision: 322800
URL: https://svnweb.freebsd.org/changeset/base/322800
Log:
Remove an unneeded call to pmap_invalidate_all. This was never called as
the anyvalid variable is never set.
MFC after: 1 week
Sponsored by: DARPA, AFRL
Modified:
head/sys/arm64/arm64/pmap.c
Modified: head/sys/arm64/arm64/pmap.c
==============================================================================
--- head/sys/arm64/arm64/pmap.c Tue Aug 22 18:15:47 2017 (r322799)
+++ head/sys/arm64/arm64/pmap.c Tue Aug 22 18:20:25 2017 (r322800)
@@ -2331,7 +2331,6 @@ pmap_remove(pmap_t pmap, vm_offset_t sva, vm_offset_t
pd_entry_t *l0, *l1, *l2;
pt_entry_t l3_paddr, *l3;
struct spglist free;
- int anyvalid;
/*
* Perform an unsynchronized read. This is, however, safe.
@@ -2339,7 +2338,6 @@ pmap_remove(pmap_t pmap, vm_offset_t sva, vm_offset_t
if (pmap->pm_stats.resident_count == 0)
return;
- anyvalid = 0;
SLIST_INIT(&free);
PMAP_LOCK(pmap);
@@ -2429,8 +2427,6 @@ pmap_remove(pmap_t pmap, vm_offset_t sva, vm_offset_t
}
if (lock != NULL)
rw_wunlock(lock);
- if (anyvalid)
- pmap_invalidate_all(pmap);
PMAP_UNLOCK(pmap);
pmap_free_zero_pages(&free);
}
More information about the svn-src-all
mailing list