Module: xenomai-forge
Branch: master
Commit: fda9bf2b7ede92d2120aae4f951e92018e021342
URL:    
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=fda9bf2b7ede92d2120aae4f951e92018e021342

Author: Philippe Gerum <r...@xenomai.org>
Date:   Tue Dec 27 16:02:19 2011 +0100

powerpc: assume I-pipe hardened mm switch is always available

---

 include/asm-powerpc/bits/pod.h |   29 -----------------------------
 1 files changed, 0 insertions(+), 29 deletions(-)

diff --git a/include/asm-powerpc/bits/pod.h b/include/asm-powerpc/bits/pod.h
index cfe0ba6..7c3f220 100644
--- a/include/asm-powerpc/bits/pod.h
+++ b/include/asm-powerpc/bits/pod.h
@@ -108,37 +108,8 @@ static inline void xnarch_switch_to(xnarchtcb_t *out_tcb,
        }
 
        next_mm = in_tcb->active_mm;
-
-#ifdef __IPIPE_FEATURE_HARDENED_SWITCHMM
        if (next_mm && likely(prev_mm != next_mm))
                __switch_mm(prev_mm, next_mm, next);
-#else /* !__IPIPE_FEATURE_HARDENED_SWITCHMM */
-       if (likely(prev_mm != next_mm)) {
-#ifdef CONFIG_ALTIVEC
-               asm volatile ("dssall;\n" :/*empty*/:);
-#endif
-#ifdef CONFIG_PPC64
-               if (likely(next_mm)) {
-                       cpu_set(ipipe_processor_id(), next_mm->cpu_vm_mask);
-#if LINUX_VERSION_CODE < KERNEL_VERSION(3,0,0)
-                       if (cpu_has_feature(CPU_FTR_SLB))
-#else
-                       if (mmu_has_feature(MMU_FTR_SLB))
-#endif
-                               switch_slb(next, next_mm);
-                       else
-                               switch_stab(next, next_mm);
-               }
-       }
-#else /* PPC32 */
-               if (likely(next_mm != NULL)) {
-                       next->thread.pgdir = next_mm->pgd;
-                       switch_mmu_context(prev_mm, next_mm);
-                       current = prev; /* Make sure r2 is valid. */
-               }
-       }
-#endif /* PPC32 */
-#endif /* !__IPIPE_FEATURE_HARDENED_SWITCHMM */
 
 #ifdef CONFIG_PPC64
        rthal_thread_switch(out_tcb->tsp, in_tcb->tsp, next == NULL);


_______________________________________________
Xenomai-git mailing list
Xenomai-git@gna.org
https://mail.gna.org/listinfo/xenomai-git

Reply via email to