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

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 8eec5f0..373b959 100644
--- a/include/asm-powerpc/bits/pod.h
+++ b/include/asm-powerpc/bits/pod.h
@@ -237,11 +237,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 38c009a..f30198c 100644
--- a/include/asm-powerpc/system.h
+++ b/include/asm-powerpc/system.h
@@ -57,11 +57,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