[Xenomai-git] Philippe Gerum : cobalt/thread: drop obsolete release_fpu() helper

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

Author: Philippe Gerum 
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


[Xenomai-git] Philippe Gerum : cobalt/thread: drop obsolete release_fpu() helper

2016-09-11 Thread git repository hosting
Module: xenomai-3
Branch: stable-3.0.x
Commit: 3754612c93eb5f2559590da313f2bad7e09ca90e
URL:
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=3754612c93eb5f2559590da313f2bad7e09ca90e

Author: Philippe Gerum 
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


[Xenomai-git] Philippe Gerum : cobalt/thread: drop obsolete release_fpu() helper

2016-09-11 Thread git repository hosting
Module: xenomai-3
Branch: next
Commit: c0ec6f455631de29133e24e12d51fb6a1bb4bfe5
URL:
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=c0ec6f455631de29133e24e12d51fb6a1bb4bfe5

Author: Philippe Gerum 
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 6c084f7..3b57cba 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 release_all_ownerships(struct xnthread *curr)


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