Module: xenomai-3 Branch: next Commit: 25a1d5c68caa76775a72f20d2557bd1453a2d2b0 URL: http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=25a1d5c68caa76775a72f20d2557bd1453a2d2b0
Author: Philippe Gerum <r...@xenomai.org> Date: Sat Sep 5 19:00:05 2015 +0200 cobalt/arm: inline escalation of scheduling request --- kernel/cobalt/arch/arm/include/asm/xenomai/thread.h | 10 +++++++++- kernel/cobalt/arch/arm/thread.c | 10 ---------- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/kernel/cobalt/arch/arm/include/asm/xenomai/thread.h b/kernel/cobalt/arch/arm/include/asm/xenomai/thread.h index 11439a3..3e332b2 100644 --- a/kernel/cobalt/arch/arm/include/asm/xenomai/thread.h +++ b/kernel/cobalt/arch/arm/include/asm/xenomai/thread.h @@ -65,7 +65,15 @@ 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; +} #if defined(CONFIG_XENO_ARCH_FPU) && defined(CONFIG_VFP) diff --git a/kernel/cobalt/arch/arm/thread.c b/kernel/cobalt/arch/arm/thread.c index 825926c..e13fb63 100644 --- a/kernel/cobalt/arch/arm/thread.c +++ b/kernel/cobalt/arch/arm/thread.c @@ -343,13 +343,3 @@ void xnarch_switch_to(struct xnthread *out, struct xnthread *in) __asm_thread_switch(out_tcb->core.tip, in_tcb->core.tip); } - -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