Module: xenomai-3
Branch: wip/drivers
Commit: 37253b634f258a1de3ee29f93a9b6a133a7391b0
URL:    
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=37253b634f258a1de3ee29f93a9b6a133a7391b0

Author: Philippe Gerum <r...@xenomai.org>
Date:   Thu Sep  8 16:29:54 2016 +0200

cobalt/arm: fpu: drop obsolete xnarch_save_fpu()

---

 kernel/cobalt/arch/arm/include/asm/xenomai/thread.h |    4 ----
 kernel/cobalt/arch/arm/thread.c                     |    7 -------
 2 files changed, 11 deletions(-)

diff --git a/kernel/cobalt/arch/arm/include/asm/xenomai/thread.h 
b/kernel/cobalt/arch/arm/include/asm/xenomai/thread.h
index 3e332b2..bfe0b9c 100644
--- a/kernel/cobalt/arch/arm/include/asm/xenomai/thread.h
+++ b/kernel/cobalt/arch/arm/include/asm/xenomai/thread.h
@@ -89,8 +89,6 @@ int xnarch_fault_fpu_p(struct ipipe_trap_data *d);
 
 void xnarch_leave_root(struct xnthread *root);
 
-void xnarch_save_fpu(struct xnthread *thread);
-
 void xnarch_switch_fpu(struct xnthread *from, struct xnthread *thread);
 
 int xnarch_handle_fpu_fault(struct xnthread *from, 
@@ -113,8 +111,6 @@ static inline int xnarch_fault_fpu_p(struct ipipe_trap_data 
*d)
 
 static inline void xnarch_leave_root(struct xnthread *root) { }
 
-static inline void xnarch_save_fpu(struct xnthread *thread) { }
-
 static inline void xnarch_switch_fpu(struct xnthread *f, struct xnthread *t) { 
}
 
 static inline int xnarch_handle_fpu_fault(struct xnthread *from, 
diff --git a/kernel/cobalt/arch/arm/thread.c b/kernel/cobalt/arch/arm/thread.c
index 7e2b7cf..5224218 100644
--- a/kernel/cobalt/arch/arm/thread.c
+++ b/kernel/cobalt/arch/arm/thread.c
@@ -211,13 +211,6 @@ void xnarch_leave_root(struct xnthread *root)
        rootcb->fpup = get_fpu_owner();
 }
 
-void xnarch_save_fpu(struct xnthread *thread)
-{
-       struct xnarchtcb *tcb = &thread->tcb;
-       if (tcb->fpup)
-               __asm_vfp_save(tcb->fpup, do_enable_vfp());
-}
-
 void xnarch_switch_fpu(struct xnthread *from, struct xnthread *to)
 {
        union vfp_state *const from_fpup = from ? from->tcb.fpup : NULL;


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

Reply via email to