summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2010-02-21 23:10:13 +0000
committermarcel <marcel@FreeBSD.org>2010-02-21 23:10:13 +0000
commit710af9deaa1ebb316e5b8db00ea500dcf67ff7bc (patch)
tree5d4dc455ca907a9890a338fd5d91e46ca0be3788
parenteeebe8a44933636e1b9b026d098555602bec035c (diff)
downloadFreeBSD-src-710af9deaa1ebb316e5b8db00ea500dcf67ff7bc.zip
FreeBSD-src-710af9deaa1ebb316e5b8db00ea500dcf67ff7bc.tar.gz
Remove pm_active from struct pmap as it serves no purpose.
MFC after: 1 week
-rw-r--r--sys/ia64/ia64/pmap.c5
-rw-r--r--sys/ia64/include/pmap.h1
2 files changed, 0 insertions, 6 deletions
diff --git a/sys/ia64/ia64/pmap.c b/sys/ia64/ia64/pmap.c
index a2af574..f829746 100644
--- a/sys/ia64/ia64/pmap.c
+++ b/sys/ia64/ia64/pmap.c
@@ -453,7 +453,6 @@ pmap_bootstrap()
PMAP_LOCK_INIT(kernel_pmap);
for (i = 0; i < 5; i++)
kernel_pmap->pm_rid[i] = 0;
- kernel_pmap->pm_active = 1;
TAILQ_INIT(&kernel_pmap->pm_pvlist);
PCPU_SET(md.current_pmap, kernel_pmap);
@@ -662,7 +661,6 @@ pmap_pinit(struct pmap *pmap)
PMAP_LOCK_INIT(pmap);
for (i = 0; i < 5; i++)
pmap->pm_rid[i] = pmap_allocate_rid();
- pmap->pm_active = 0;
TAILQ_INIT(&pmap->pm_pvlist);
bzero(&pmap->pm_stats, sizeof pmap->pm_stats);
return (1);
@@ -2246,8 +2244,6 @@ pmap_switch(pmap_t pm)
prevpm = PCPU_GET(md.current_pmap);
if (prevpm == pm)
goto out;
- if (prevpm != NULL)
- atomic_clear_32(&prevpm->pm_active, PCPU_GET(cpumask));
if (pm == NULL) {
for (i = 0; i < 5; i++) {
ia64_set_rr(IA64_RR_BASE(i),
@@ -2258,7 +2254,6 @@ pmap_switch(pmap_t pm)
ia64_set_rr(IA64_RR_BASE(i),
(pm->pm_rid[i] << 8)|(PAGE_SHIFT << 2)|1);
}
- atomic_set_32(&pm->pm_active, PCPU_GET(cpumask));
}
PCPU_SET(md.current_pmap, pm);
ia64_srlz_d();
diff --git a/sys/ia64/include/pmap.h b/sys/ia64/include/pmap.h
index e40d647..44079c8 100644
--- a/sys/ia64/include/pmap.h
+++ b/sys/ia64/include/pmap.h
@@ -76,7 +76,6 @@ struct pmap {
struct mtx pm_mtx;
TAILQ_HEAD(,pv_entry) pm_pvlist; /* list of mappings in pmap */
u_int32_t pm_rid[5]; /* base RID for pmap */
- int pm_active; /* active flag */
struct pmap_statistics pm_stats; /* pmap statistics */
};
OpenPOWER on IntegriCloud