From d8fed0f0f2dfeaa8eb715365afb88aae8a9edc9d Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Thu, 10 Apr 2003 18:42:06 +0000 Subject: [PATCH] - Kill the pv_flags member of the alpha mdpage since it stop being used in rev 1.61 of pmap.c. - Now that pmap_page_is_free() is empty and since it is just a hack for the Alpha pmap, remove it. --- sys/alpha/alpha/pmap.c | 14 -------------- sys/alpha/include/pmap.h | 1 - sys/vm/pmap.h | 3 --- sys/vm/vm_page.c | 4 ---- 4 files changed, 22 deletions(-) diff --git a/sys/alpha/alpha/pmap.c b/sys/alpha/alpha/pmap.c index 06fb7caf084..f51960a3259 100644 --- a/sys/alpha/alpha/pmap.c +++ b/sys/alpha/alpha/pmap.c @@ -633,7 +633,6 @@ pmap_init(phys_start, phys_end) m = &vm_page_array[i]; TAILQ_INIT(&m->md.pv_list); m->md.pv_list_count = 0; - m->md.pv_flags = 0; } /* @@ -2901,19 +2900,6 @@ pmap_clear_modify(vm_page_t m) } } -/* - * pmap_page_is_free: - * - * Called when a page is freed to allow pmap to clean up - * any extra state associated with the page. In this case - * clear modified/referenced bits. - */ -void -pmap_page_is_free(vm_page_t m) -{ - m->md.pv_flags = 0; -} - /* * pmap_clear_reference: * diff --git a/sys/alpha/include/pmap.h b/sys/alpha/include/pmap.h index 981bea34cec..b64cee8e34c 100644 --- a/sys/alpha/include/pmap.h +++ b/sys/alpha/include/pmap.h @@ -161,7 +161,6 @@ struct pv_entry; struct md_page { int pv_list_count; - int pv_flags; TAILQ_HEAD(,pv_entry) pv_list; }; diff --git a/sys/vm/pmap.h b/sys/vm/pmap.h index 794c764a2f6..1a1e232059f 100644 --- a/sys/vm/pmap.h +++ b/sys/vm/pmap.h @@ -96,9 +96,6 @@ extern vm_offset_t kernel_vm_end; extern int pmap_pagedaemon_waken; -#ifdef __alpha__ -void pmap_page_is_free(vm_page_t m); -#endif void pmap_change_wiring(pmap_t, vm_offset_t, boolean_t); void pmap_clear_modify(vm_page_t m); void pmap_clear_reference(vm_page_t m); diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c index 12c15ae62f6..a0d77442d3f 100644 --- a/sys/vm/vm_page.c +++ b/sys/vm/vm_page.c @@ -1098,10 +1098,6 @@ vm_page_free_toq(vm_page_t m) */ if (m->flags & PG_UNMANAGED) { m->flags &= ~PG_UNMANAGED; - } else { -#ifdef __alpha__ - pmap_page_is_free(m); -#endif } if (m->hold_count != 0) {