summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2006-06-11 04:14:36 +0000
committeralc <alc@FreeBSD.org>2006-06-11 04:14:36 +0000
commit2047f3b7e71ac86b1022498405846b4c3d26816b (patch)
treef5a6c5de1c31736944e89de6400df17c1620a31c
parent5d112062f8dd4bc20545e392007027e99716c38d (diff)
downloadFreeBSD-src-2047f3b7e71ac86b1022498405846b4c3d26816b.zip
FreeBSD-src-2047f3b7e71ac86b1022498405846b4c3d26816b.tar.gz
Eliminate spl calls.
-rw-r--r--sys/arm/arm/pmap.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/sys/arm/arm/pmap.c b/sys/arm/arm/pmap.c
index 713cae7..b1a6d38 100644
--- a/sys/arm/arm/pmap.c
+++ b/sys/arm/arm/pmap.c
@@ -2262,7 +2262,6 @@ pmap_activate(struct thread *td)
{
pmap_t pm;
struct pcb *pcb;
- int s;
pm = vmspace_pmap(td->td_proc->p_vmspace);
pcb = td->td_pcb;
@@ -2306,8 +2305,6 @@ pmap_activate(struct thread *td)
cpu_domains(pcb->pcb_dacr);
cpu_setttb(pcb->pcb_pagedir);
-
- splx(s);
}
critical_exit();
}
@@ -2738,7 +2735,6 @@ void
pmap_growkernel(vm_offset_t addr)
{
pmap_t kpm = pmap_kernel();
- int s;
if (addr <= pmap_curmaxkvaddr)
return; /* we are OK */
@@ -2747,8 +2743,6 @@ pmap_growkernel(vm_offset_t addr)
* whoops! we need to add kernel PTPs
*/
- s = splhigh(); /* to be safe */
-
/* Map 1MB at a time */
for (; pmap_curmaxkvaddr < addr; pmap_curmaxkvaddr += L1_S_SIZE)
pmap_grow_l2_bucket(kpm, pmap_curmaxkvaddr);
@@ -4390,13 +4384,10 @@ pmap_page_exists_quick(pmap_t pmap, vm_page_t m)
{
pv_entry_t pv;
int loops = 0;
- int s;
if (m->flags & PG_FICTITIOUS)
return (FALSE);
- s = splvm();
-
/*
* Not found, check current mappings returning immediately
*/
@@ -4404,14 +4395,12 @@ pmap_page_exists_quick(pmap_t pmap, vm_page_t m)
pv;
pv = TAILQ_NEXT(pv, pv_list)) {
if (pv->pv_pmap == pmap) {
- splx(s);
return (TRUE);
}
loops++;
if (loops >= 16)
break;
}
- splx(s);
return (FALSE);
}
OpenPOWER on IntegriCloud