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

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

cobalt/thread: drop obsolete release_fpu() helper

---

 kernel/cobalt/thread.c |   17 -----------------
 1 file changed, 17 deletions(-)

diff --git a/kernel/cobalt/thread.c b/kernel/cobalt/thread.c
index 01d86b3..fb856a4 100644
--- a/kernel/cobalt/thread.c
+++ b/kernel/cobalt/thread.c
@@ -435,19 +435,6 @@ static inline void giveup_fpu(struct xnsched *sched,
                sched->fpuholder = NULL;
 }
 
-static inline void release_fpu(struct xnthread *thread)
-{
-       /*
-        * Force the FPU save, and nullify the sched->fpuholder
-        * pointer, to avoid leaving fpuholder pointing on the backup
-        * area of the migrated thread.
-        */
-       if (xnthread_test_state(thread, XNFPU)) {
-               xnarch_save_fpu(thread);
-               thread->sched->fpuholder = NULL;
-       }
-}
-
 void xnthread_switch_fpu(struct xnsched *sched)
 {
        struct xnthread *curr = sched->curr;
@@ -466,10 +453,6 @@ static inline void giveup_fpu(struct xnsched *sched,
 {
 }
 
-static inline void release_fpu(struct xnthread *thread)
-{
-}
-
 #endif /* !CONFIG_XENO_ARCH_FPU */
 
 static inline void cleanup_tcb(struct xnthread *thread) /* nklock held, irqs 
off */


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

Reply via email to