Module: xenomai-forge
Branch: next
Commit: 9f823ea38407c46476474460b27c30817d4140e1
URL:    
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=9f823ea38407c46476474460b27c30817d4140e1

Author: Philippe Gerum <r...@xenomai.org>
Date:   Fri Aug 29 18:53:40 2014 +0200

cobalt/arch: drop useless indirection to mayday call

ipipe_raise_mayday() is the generic API call to handle this, and for
this reason, there should not be any arch-specific client code
required for this feature.

---

 kernel/cobalt/arch/arm/mayday.c                    |    5 -----
 kernel/cobalt/arch/blackfin/mayday.c               |    5 -----
 kernel/cobalt/arch/nios2/mayday.c                  |    5 -----
 kernel/cobalt/arch/powerpc/mayday.c                |    5 -----
 kernel/cobalt/arch/sh/mayday.c                     |    5 -----
 kernel/cobalt/arch/x86/mayday.c                    |    5 -----
 kernel/cobalt/include/asm-generic/xenomai/mayday.h |    2 --
 kernel/cobalt/thread.c                             |    4 ++--
 8 files changed, 2 insertions(+), 34 deletions(-)

diff --git a/kernel/cobalt/arch/arm/mayday.c b/kernel/cobalt/arch/arm/mayday.c
index c23886e..cf87330 100644
--- a/kernel/cobalt/arch/arm/mayday.c
+++ b/kernel/cobalt/arch/arm/mayday.c
@@ -93,11 +93,6 @@ void xnarch_setup_mayday_page(void *page)
        flush_dcache_page(vmalloc_to_page(page));
 }
 
-void xnarch_call_mayday(struct task_struct *p)
-{
-       ipipe_raise_mayday(p);
-}
-
 void xnarch_handle_mayday(struct xnarchtcb *tcb, struct pt_regs *regs,
                          unsigned long tramp)
 {
diff --git a/kernel/cobalt/arch/blackfin/mayday.c 
b/kernel/cobalt/arch/blackfin/mayday.c
index afe9abe..07ebfa2 100644
--- a/kernel/cobalt/arch/blackfin/mayday.c
+++ b/kernel/cobalt/arch/blackfin/mayday.c
@@ -70,11 +70,6 @@ void xnarch_setup_mayday_page(void *page)
                           (unsigned long)page + sizeof(code));
 }
 
-void xnarch_call_mayday(struct task_struct *p)
-{
-       ipipe_raise_mayday(p);
-}
-
 void xnarch_handle_mayday(struct xnarchtcb *tcb,
                          struct pt_regs *regs,
                          unsigned long tramp)
diff --git a/kernel/cobalt/arch/nios2/mayday.c 
b/kernel/cobalt/arch/nios2/mayday.c
index 8fe8d9e..9b5cddf 100644
--- a/kernel/cobalt/arch/nios2/mayday.c
+++ b/kernel/cobalt/arch/nios2/mayday.c
@@ -54,11 +54,6 @@ void xnarch_setup_mayday_page(void *page)
                           (unsigned long)page + sizeof(code));
 }
 
-void xnarch_call_mayday(struct task_struct *p)
-{
-       ipipe_raise_mayday(p);
-}
-
 void xnarch_handle_mayday(struct xnarchtcb *tcb,
                          struct pt_regs *regs, unsigned long tramp)
 {
diff --git a/kernel/cobalt/arch/powerpc/mayday.c 
b/kernel/cobalt/arch/powerpc/mayday.c
index 43524ec..0f4785c 100644
--- a/kernel/cobalt/arch/powerpc/mayday.c
+++ b/kernel/cobalt/arch/powerpc/mayday.c
@@ -50,11 +50,6 @@ void xnarch_setup_mayday_page(void *page)
                           (unsigned long)page + sizeof(insn));
 }
 
-void xnarch_call_mayday(struct task_struct *p)
-{
-       ipipe_raise_mayday(p);
-}
-
 void xnarch_handle_mayday(struct xnarchtcb *tcb,
                          struct pt_regs *regs,
                          unsigned long tramp)
diff --git a/kernel/cobalt/arch/sh/mayday.c b/kernel/cobalt/arch/sh/mayday.c
index 17db150..a753f33 100644
--- a/kernel/cobalt/arch/sh/mayday.c
+++ b/kernel/cobalt/arch/sh/mayday.c
@@ -60,11 +60,6 @@ void xnarch_setup_mayday_page(void *page)
        flush_dcache_page(vmalloc_to_page(page));
 }
 
-void xnarch_call_mayday(struct task_struct *p)
-{
-       ipipe_raise_mayday(p);
-}
-
 void xnarch_handle_mayday(struct xnarchtcb *tcb,
                          struct pt_regs *regs, unsigned long tramp)
 {
diff --git a/kernel/cobalt/arch/x86/mayday.c b/kernel/cobalt/arch/x86/mayday.c
index d74463b..cfdf5ca 100644
--- a/kernel/cobalt/arch/x86/mayday.c
+++ b/kernel/cobalt/arch/x86/mayday.c
@@ -110,8 +110,3 @@ void xnarch_fixup_mayday(struct xnarchtcb *tcb, struct 
pt_regs *regs)
        regs->ax = tcb->mayday.ax;
        regs->sp = tcb->mayday.sp;
 }
-
-void xnarch_call_mayday(struct task_struct *p)
-{
-       ipipe_raise_mayday(p);
-}
diff --git a/kernel/cobalt/include/asm-generic/xenomai/mayday.h 
b/kernel/cobalt/include/asm-generic/xenomai/mayday.h
index 906449a..da1a48b 100644
--- a/kernel/cobalt/include/asm-generic/xenomai/mayday.h
+++ b/kernel/cobalt/include/asm-generic/xenomai/mayday.h
@@ -25,8 +25,6 @@ struct pt_regs;
 
 void xnarch_setup_mayday_page(void *page);
 
-void xnarch_call_mayday(struct task_struct *p);
-
 void xnarch_handle_mayday(struct xnarchtcb *tcb,
                          struct pt_regs *regs,
                          unsigned long tramp);
diff --git a/kernel/cobalt/thread.c b/kernel/cobalt/thread.c
index 8b98e25..5de967f 100644
--- a/kernel/cobalt/thread.c
+++ b/kernel/cobalt/thread.c
@@ -2162,7 +2162,7 @@ void __xnthread_kick(struct xnthread *thread) /* nklock 
locked, irqs off */
         */
        if (thread != xnsched_current_thread() &&
            xnthread_test_state(thread, XNUSER))
-               xnarch_call_mayday(p);
+               ipipe_raise_mayday(p);
 }
 
 void xnthread_kick(struct xnthread *thread)
@@ -2413,7 +2413,7 @@ void xnthread_call_mayday(struct xnthread *thread, int 
reason)
        XENO_BUGON(NUCLEUS, !xnthread_test_state(thread, XNUSER));
        xnthread_set_info(thread, XNKICKED);
        xnthread_signal(thread, SIGDEBUG, reason);
-       xnarch_call_mayday(p);
+       ipipe_raise_mayday(p);
 }
 EXPORT_SYMBOL_GPL(xnthread_call_mayday);
 


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

Reply via email to