Module: xenomai-3 Branch: master Commit: 41a3391b6d9b106947fa48d1dd9fbc83f87a6899 URL: http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=41a3391b6d9b106947fa48d1dd9fbc83f87a6899
Author: Philippe Gerum <r...@xenomai.org> Date: Sat Sep 5 18:59:22 2015 +0200 cobalt/powerpc: inline escalation of scheduling request --- kernel/cobalt/arch/powerpc/include/asm/xenomai/thread.h | 12 ++++++++++-- kernel/cobalt/arch/powerpc/thread.c | 10 ---------- 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/kernel/cobalt/arch/powerpc/include/asm/xenomai/thread.h b/kernel/cobalt/arch/powerpc/include/asm/xenomai/thread.h index 8858bdd..8d6be84 100644 --- a/kernel/cobalt/arch/powerpc/include/asm/xenomai/thread.h +++ b/kernel/cobalt/arch/powerpc/include/asm/xenomai/thread.h @@ -81,9 +81,17 @@ xnarch_handle_fpu_fault(struct xnthread *from, return 0; } -void xnarch_switch_to(struct xnthread *out, struct xnthread *in); +static inline int xnarch_escalate(void) +{ + if (ipipe_root_p) { + ipipe_raise_irq(cobalt_pipeline.escalate_virq); + return 1; + } + + return 0; +} -int xnarch_escalate(void); +void xnarch_switch_to(struct xnthread *out, struct xnthread *in); void xnarch_save_fpu(struct xnthread *thread); diff --git a/kernel/cobalt/arch/powerpc/thread.c b/kernel/cobalt/arch/powerpc/thread.c index c5b9a18..7f6ff87 100644 --- a/kernel/cobalt/arch/powerpc/thread.c +++ b/kernel/cobalt/arch/powerpc/thread.c @@ -193,13 +193,3 @@ void xnarch_leave_root(struct xnthread *root) } #endif /* CONFIG_XENO_ARCH_FPU */ - -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