Module: xenomai-3
Branch: master
Commit: 7fadcd23fba0e0d80a154c086127f19d5645fa91
URL:    
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=7fadcd23fba0e0d80a154c086127f19d5645fa91

Author: Philippe Gerum <r...@xenomai.org>
Date:   Sat Sep  5 19:01:05 2015 +0200

cobalt/x86: inline escalation of scheduling request

---

 kernel/cobalt/arch/x86/include/asm/xenomai/thread.h |   10 +++++++++-
 kernel/cobalt/arch/x86/thread.c                     |   10 ----------
 2 files changed, 9 insertions(+), 11 deletions(-)

diff --git a/kernel/cobalt/arch/x86/include/asm/xenomai/thread.h 
b/kernel/cobalt/arch/x86/include/asm/xenomai/thread.h
index f58caf7..3862e33 100644
--- a/kernel/cobalt/arch/x86/include/asm/xenomai/thread.h
+++ b/kernel/cobalt/arch/x86/include/asm/xenomai/thread.h
@@ -76,6 +76,14 @@ void xnarch_switch_to(struct xnthread *out, struct xnthread 
*in);
 
 static inline void xnarch_enter_root(struct xnthread *root) { }
 
-int xnarch_escalate(void);
+static inline int xnarch_escalate(void)
+{
+       if (ipipe_root_p) {
+               ipipe_raise_irq(cobalt_pipeline.escalate_virq);
+               return 1;
+       }
+
+       return 0;
+}
 
 #endif /* !_COBALT_X86_ASM_THREAD_H */
diff --git a/kernel/cobalt/arch/x86/thread.c b/kernel/cobalt/arch/x86/thread.c
index 0a057ee..8d2fc23 100644
--- a/kernel/cobalt/arch/x86/thread.c
+++ b/kernel/cobalt/arch/x86/thread.c
@@ -423,13 +423,3 @@ void xnarch_init_shadow_tcb(struct xnthread *thread)
        /* XNFPU is set upon first FPU fault */
        xnthread_clear_state(thread, XNFPU);
 }
-
-int xnarch_escalate(void)
-{
-       if (ipipe_root_p) {
-               ipipe_raise_irq(cobalt_pipeline.escalate_virq);
-               return 1;
-       }
-
-       return 0;
-}


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

Reply via email to