Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/alpha Garbage-collect pmap_do_reactivate() and the ...
details: https://anonhg.NetBSD.org/src/rev/48978afeeca8
branches: trunk
changeset: 748521:48978afeeca8
user: thorpej <thorpej%NetBSD.org@localhost>
date: Mon Oct 26 03:51:42 2009 +0000
description:
Garbage-collect pmap_do_reactivate() and the associated IPI -- nothing has
used them for a long time.
diffstat:
sys/arch/alpha/alpha/ipifuncs.c | 6 ++----
sys/arch/alpha/alpha/pmap.c | 27 ++-------------------------
sys/arch/alpha/include/intr.h | 5 ++---
sys/arch/alpha/include/pmap.h | 4 +---
4 files changed, 7 insertions(+), 35 deletions(-)
diffs (120 lines):
diff -r 09957cf35574 -r 48978afeeca8 sys/arch/alpha/alpha/ipifuncs.c
--- a/sys/arch/alpha/alpha/ipifuncs.c Mon Oct 26 03:21:19 2009 +0000
+++ b/sys/arch/alpha/alpha/ipifuncs.c Mon Oct 26 03:51:42 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ipifuncs.c,v 1.40 2008/04/28 20:23:10 martin Exp $ */
+/* $NetBSD: ipifuncs.c,v 1.41 2009/10/26 03:51:42 thorpej Exp $ */
/*-
* Copyright (c) 1998, 1999, 2000, 2001 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: ipifuncs.c,v 1.40 2008/04/28 20:23:10 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ipifuncs.c,v 1.41 2009/10/26 03:51:42 thorpej Exp $");
/*
* Interprocessor interrupt handlers.
@@ -78,7 +78,6 @@
alpha_ipi_synch_fpu,
alpha_ipi_discard_fpu,
alpha_ipi_pause,
- pmap_do_reactivate,
};
const char *ipinames[ALPHA_NIPIS] = {
@@ -90,7 +89,6 @@
"synch fpu ipi",
"discard fpu ipi",
"pause ipi",
- "pmap reactivate ipi",
};
/*
diff -r 09957cf35574 -r 48978afeeca8 sys/arch/alpha/alpha/pmap.c
--- a/sys/arch/alpha/alpha/pmap.c Mon Oct 26 03:21:19 2009 +0000
+++ b/sys/arch/alpha/alpha/pmap.c Mon Oct 26 03:51:42 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.247 2009/10/26 03:21:19 thorpej Exp $ */
+/* $NetBSD: pmap.c,v 1.248 2009/10/26 03:51:42 thorpej Exp $ */
/*-
* Copyright (c) 1998, 1999, 2000, 2001, 2007, 2008 The NetBSD Foundation, Inc.
@@ -140,7 +140,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.247 2009/10/26 03:21:19 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.248 2009/10/26 03:51:42 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -2167,29 +2167,6 @@
atomic_and_ulong(&pmap->pm_cpus, ~(1UL << cpu_number()));
}
-#if defined(MULTIPROCESSOR)
-/*
- * pmap_do_reactivate:
- *
- * Reactivate an address space when the level 1 map changes.
- * We are invoked by an interprocessor interrupt.
- */
-void
-pmap_do_reactivate(struct cpu_info *ci, struct trapframe *framep)
-{
- struct pmap *pmap;
-
- if (ci->ci_curlwp == ci->ci_data.cpu_idlelwp)
- return;
-
- pmap = ci->ci_curlwp->l_proc->p_vmspace->vm_map.pmap;
-
- pmap_asn_alloc(pmap, ci->ci_cpuid);
- if (PMAP_ISACTIVE(pmap, ci->ci_cpuid))
- PMAP_ACTIVATE(pmap, ci->ci_curlwp, ci->ci_cpuid);
-}
-#endif /* MULTIPROCESSOR */
-
/*
* pmap_zero_page: [ INTERFACE ]
*
diff -r 09957cf35574 -r 48978afeeca8 sys/arch/alpha/include/intr.h
--- a/sys/arch/alpha/include/intr.h Mon Oct 26 03:21:19 2009 +0000
+++ b/sys/arch/alpha/include/intr.h Mon Oct 26 03:51:42 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: intr.h,v 1.66 2008/04/28 20:23:11 martin Exp $ */
+/* $NetBSD: intr.h,v 1.67 2009/10/26 03:51:43 thorpej Exp $ */
/*-
* Copyright (c) 2000, 2001, 2002 The NetBSD Foundation, Inc.
@@ -165,9 +165,8 @@
#define ALPHA_IPI_SYNCH_FPU (1UL << 5)
#define ALPHA_IPI_DISCARD_FPU (1UL << 6)
#define ALPHA_IPI_PAUSE (1UL << 7)
-#define ALPHA_IPI_PMAP_REACTIVATE (1UL << 8)
-#define ALPHA_NIPIS 9 /* must not exceed 64 */
+#define ALPHA_NIPIS 8 /* must not exceed 64 */
struct cpu_info;
struct trapframe;
diff -r 09957cf35574 -r 48978afeeca8 sys/arch/alpha/include/pmap.h
--- a/sys/arch/alpha/include/pmap.h Mon Oct 26 03:21:19 2009 +0000
+++ b/sys/arch/alpha/include/pmap.h Mon Oct 26 03:51:42 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.h,v 1.74 2009/03/15 22:19:15 cegger Exp $ */
+/* $NetBSD: pmap.h,v 1.75 2009/10/26 03:51:43 thorpej Exp $ */
/*-
* Copyright (c) 1998, 1999, 2000, 2001, 2007 The NetBSD Foundation, Inc.
@@ -195,8 +195,6 @@
struct cpu_info;
struct trapframe;
-void pmap_do_reactivate(struct cpu_info *, struct trapframe *);
-
void pmap_tlb_shootdown(pmap_t, vaddr_t, pt_entry_t, u_long *);
void pmap_tlb_shootnow(u_long);
void pmap_do_tlb_shootdown(struct cpu_info *, struct trapframe *);
Home |
Main Index |
Thread Index |
Old Index