Module: xenomai-forge
Branch: master
Commit: 4f7951d7d17e7a07224e5114ff5505f281cd8fc5
URL:    
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=4f7951d7d17e7a07224e5114ff5505f281cd8fc5

Author: Philippe Gerum <r...@xenomai.org>
Date:   Sun Jan  1 18:59:41 2012 +0100

nucleus: drop useless xnarch_finalize_no_switch() wrapper

---

 include/asm-generic/system.h  |    2 --
 kernel/cobalt/nucleus/pod.c   |    2 --
 kernel/cobalt/nucleus/sched.c |    2 --
 3 files changed, 0 insertions(+), 6 deletions(-)

diff --git a/include/asm-generic/system.h b/include/asm-generic/system.h
index 125ebb8..f6ce998 100644
--- a/include/asm-generic/system.h
+++ b/include/asm-generic/system.h
@@ -404,8 +404,6 @@ static inline void xnarch_free_pages(void *p, size_t size)
        return free_pages_exact(p, size);
 }
 
-#define xnarch_finalize_no_switch(dead_tcb) do { } while(0)
-
 #ifdef rthal_fault_range
 #define xnarch_fault_range(vma) rthal_fault_range(vma)
 #else /* !rthal_fault_range */
diff --git a/kernel/cobalt/nucleus/pod.c b/kernel/cobalt/nucleus/pod.c
index d226b4b..6a9c7fc 100644
--- a/kernel/cobalt/nucleus/pod.c
+++ b/kernel/cobalt/nucleus/pod.c
@@ -1098,8 +1098,6 @@ void xnpod_delete_thread(xnthread_t *thread)
                 */
                xnthread_cleanup_tcb(thread);
 
-               xnarch_finalize_no_switch(xnthread_archtcb(thread));
-
                if (xnthread_test_state(sched->curr, XNROOT))
                        xnfreesync();
        }
diff --git a/kernel/cobalt/nucleus/sched.c b/kernel/cobalt/nucleus/sched.c
index ffb082b..d25bff0 100644
--- a/kernel/cobalt/nucleus/sched.c
+++ b/kernel/cobalt/nucleus/sched.c
@@ -262,8 +262,6 @@ void __xnsched_finalize_zombie(struct xnsched *sched)
 
        xnthread_cleanup_tcb(thread);
 
-       xnarch_finalize_no_switch(xnthread_archtcb(thread));
-
        if (xnthread_test_state(sched->curr, XNROOT))
                xnfreesync();
 


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

Reply via email to