Module: xenomai-forge Branch: next Commit: 5b28bed052906c7995df8761b14a6f61b2c00768 URL: http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=5b28bed052906c7995df8761b14a6f61b2c00768
Author: Philippe Gerum <r...@xenomai.org> Date: Thu Jan 9 13:28:22 2014 +0100 cobalt/sched: drop duplicate test --- kernel/cobalt/sched.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/kernel/cobalt/sched.c b/kernel/cobalt/sched.c index 84881c6..6ee8fa8 100644 --- a/kernel/cobalt/sched.c +++ b/kernel/cobalt/sched.c @@ -693,7 +693,7 @@ static inline void switch_context(struct xnsched *sched, */ static inline int test_resched(struct xnsched *sched) { - int resched = sched->status & XNRESCHED; + int resched = xnsched_resched_p(sched); #ifdef CONFIG_SMP /* Send resched IPI to remote CPU(s). */ if (unlikely(!cpus_empty(sched->resched))) { @@ -701,8 +701,6 @@ static inline int test_resched(struct xnsched *sched) ipipe_send_ipi(IPIPE_RESCHEDULE_IPI, sched->resched); cpus_clear(sched->resched); } -#else - resched = xnsched_resched_p(sched); #endif sched->status &= ~XNRESCHED; _______________________________________________ Xenomai-git mailing list Xenomai-git@xenomai.org http://www.xenomai.org/mailman/listinfo/xenomai-git