diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2024-11-02 07:58:59 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2024-11-02 07:58:59 +0000 |
commit | 71c77425406e4601aab2e19d1275bd9d748a3d84 (patch) | |
tree | a53bad087f0f16ecc6701dadf2ac3d9b3f206154 /sys/arch/amd64 | |
parent | cbfafb800052e33bfedddc917e112c4fb72933dc (diff) |
Kill unused pmap_collect().
ok miod@
Diffstat (limited to 'sys/arch/amd64')
-rw-r--r-- | sys/arch/amd64/amd64/pmap.c | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/sys/arch/amd64/amd64/pmap.c b/sys/arch/amd64/amd64/pmap.c index 35af9d10cdc..bfd667f99bf 100644 --- a/sys/arch/amd64/amd64/pmap.c +++ b/sys/arch/amd64/amd64/pmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.c,v 1.177 2024/10/02 18:18:27 dv Exp $ */ +/* $OpenBSD: pmap.c,v 1.178 2024/11/02 07:58:58 mpi Exp $ */ /* $NetBSD: pmap.c,v 1.3 2003/05/08 18:13:13 thorpej Exp $ */ /* @@ -2266,27 +2266,6 @@ pmap_unwire(struct pmap *pmap, vaddr_t va) #endif } -#if 0 -/* - * pmap_collect: free resources held by a pmap - * - * => optional function. - * => called when a process is swapped out to free memory. - */ - -void -pmap_collect(struct pmap *pmap) -{ - /* - * free all of the pt pages by removing the physical mappings - * for its entire address space. - */ - - pmap_do_remove(pmap, VM_MIN_ADDRESS, VM_MAX_ADDRESS, - PMAP_REMOVE_SKIPWIRED); -} -#endif - void pmap_enter_special(vaddr_t va, paddr_t pa, vm_prot_t prot) { |