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

Author: Philippe Gerum <r...@xenomai.org>
Date:   Mon Jul 13 17:19:28 2009 +0200

powerpc: discard useless backup field

---

 include/asm-powerpc/bits/pod.h |    5 +----
 include/asm-powerpc/system.h   |   10 +++++-----
 2 files changed, 6 insertions(+), 9 deletions(-)

diff --git a/include/asm-powerpc/bits/pod.h b/include/asm-powerpc/bits/pod.h
index 913f0b7..8b4db25 100644
--- a/include/asm-powerpc/bits/pod.h
+++ b/include/asm-powerpc/bits/pod.h
@@ -226,11 +226,8 @@ static inline void xnarch_save_fpu(xnarchtcb_t * tcb)
        if (tcb->fpup) {
                rthal_save_fpu(tcb->fpup);
 
-               if (tcb->user_fpu_owner && tcb->user_fpu_owner->thread.regs) {
-                       tcb->user_fpu_owner_prev_msr =
-                           tcb->user_fpu_owner->thread.regs->msr;
+               if (tcb->user_fpu_owner && tcb->user_fpu_owner->thread.regs)
                        tcb->user_fpu_owner->thread.regs->msr &= ~MSR_FP;
-               }
        }
 #endif /* CONFIG_XENO_HW_FPU */
 }
diff --git a/include/asm-powerpc/system.h b/include/asm-powerpc/system.h
index 04e0943..b327bc2 100644
--- a/include/asm-powerpc/system.h
+++ b/include/asm-powerpc/system.h
@@ -63,11 +63,11 @@ typedef struct xnarchtcb {  /* Per-thread arch-dependent 
block */
           and SPE are not available to kernel-based nucleus threads. */
        rthal_fpenv_t *fpup;    /* Pointer to the FPU backup area */
        struct task_struct *user_fpu_owner;
-       unsigned long user_fpu_owner_prev_msr;
-       /* Pointer the the FPU owner in userspace:
-          - NULL for RT K threads,
-          - last_task_used_math for Linux US threads (only current or NULL 
when MP)
-          - current for RT US threads.
+       /*
+        * Pointer to the FPU owner in userspace:
+        * - NULL for RT K threads,
+        * - last_task_used_math for Linux US threads (current or NULL when SMP)
+        * - current for RT US threads.
         */
 #define xnarch_fpu_ptr(tcb)     ((tcb)->fpup)
 #else                          /* !CONFIG_XENO_HW_FPU */


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

Reply via email to