diff options
author | Attilio Rao <attilio@FreeBSD.org> | 2011-06-16 07:27:13 +0000 |
---|---|---|
committer | Attilio Rao <attilio@FreeBSD.org> | 2011-06-16 07:27:13 +0000 |
commit | c7c2767e33a58099fc3ac349d9aa303aeb32dbed (patch) | |
tree | cfcedcc4b83fd1cbb8d46df628c5371a4c464226 /sys/powerpc/aim | |
parent | 8a9ce51786b3d7bd542fd32eb9d2ff172aa2bf04 (diff) | |
download | src-c7c2767e33a58099fc3ac349d9aa303aeb32dbed.tar.gz src-c7c2767e33a58099fc3ac349d9aa303aeb32dbed.zip |
Remove pc_other_cpus and pc_cpumask usage from powerpc support.
Tested and reviewed by: andreast
Notes
Notes:
svn path=/projects/largeSMP/; revision=223142
Diffstat (limited to 'sys/powerpc/aim')
-rw-r--r-- | sys/powerpc/aim/mmu_oea.c | 8 | ||||
-rw-r--r-- | sys/powerpc/aim/mmu_oea64.c | 8 |
2 files changed, 4 insertions, 12 deletions
diff --git a/sys/powerpc/aim/mmu_oea.c b/sys/powerpc/aim/mmu_oea.c index be80455dab6c..23354f9fd1b0 100644 --- a/sys/powerpc/aim/mmu_oea.c +++ b/sys/powerpc/aim/mmu_oea.c @@ -945,9 +945,7 @@ moea_activate(mmu_t mmu, struct thread *td) pm = &td->td_proc->p_vmspace->vm_pmap; pmr = pm->pmap_phys; - sched_pin(); - CPU_OR(&pm->pm_active, PCPU_PTR(cpumask)); - sched_unpin(); + CPU_SET(PCPU_GET(cpuid), &pm->pm_active); PCPU_SET(curpmap, pmr); } @@ -957,9 +955,7 @@ moea_deactivate(mmu_t mmu, struct thread *td) pmap_t pm; pm = &td->td_proc->p_vmspace->vm_pmap; - sched_pin(); - CPU_NAND(&pm->pm_active, PCPU_PTR(cpumask)); - sched_unpin(); + CPU_CLR(PCPU_GET(cpuid), &pm->pm_active); PCPU_SET(curpmap, NULL); } diff --git a/sys/powerpc/aim/mmu_oea64.c b/sys/powerpc/aim/mmu_oea64.c index 291d89b3e760..6a1eb27e2f0e 100644 --- a/sys/powerpc/aim/mmu_oea64.c +++ b/sys/powerpc/aim/mmu_oea64.c @@ -998,9 +998,7 @@ moea64_activate(mmu_t mmu, struct thread *td) pmap_t pm; pm = &td->td_proc->p_vmspace->vm_pmap; - sched_pin(); - CPU_OR(&pm->pm_active, PCPU_PTR(cpumask)); - sched_unpin(); + CPU_SET(PCPU_GET(cpuid), &pm->pm_active); #ifdef __powerpc64__ PCPU_SET(userslb, pm->pm_slb); @@ -1015,9 +1013,7 @@ moea64_deactivate(mmu_t mmu, struct thread *td) pmap_t pm; pm = &td->td_proc->p_vmspace->vm_pmap; - sched_pin(); - CPU_NAND(&pm->pm_active, PCPU_PTR(cpumask)); - sched_unpin(); + CPU_CLR(PCPU_GET(cpuid), &pm->pm_active); #ifdef __powerpc64__ PCPU_SET(userslb, NULL); #else |