Module: xenomai-jki Branch: for-upstream Commit: 6e91a88a7b1a5a00d0aa8061abcd75a5791d9a56 URL: http://git.xenomai.org/?p=xenomai-jki.git;a=commit;h=6e91a88a7b1a5a00d0aa8061abcd75a5791d9a56
Author: Jan Kiszka <jan.kis...@siemens.com> Date: Fri Nov 12 13:38:36 2010 +0100 nucleus: Avoid spurious calls to xnarch_send_ipi The test to derive the need for sending IPIs has to be based on the resched bitmap, not the XNRESCHED flag. Signed-off-by: Jan Kiszka <jan.kis...@siemens.com> --- ksrc/nucleus/pod.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/ksrc/nucleus/pod.c b/ksrc/nucleus/pod.c index fb19e93..476ce28 100644 --- a/ksrc/nucleus/pod.c +++ b/ksrc/nucleus/pod.c @@ -2173,7 +2173,7 @@ static inline int __xnpod_test_resched(struct xnsched *sched) int resched = testbits(sched->status, XNRESCHED); #ifdef CONFIG_SMP /* Send resched IPI to remote CPU(s). */ - if (unlikely(xnsched_resched_p(sched))) { + if (unlikely(!xnarch_cpus_empty(sched->resched))) { xnarch_memory_barrier(); xnarch_send_ipi(sched->resched); xnarch_cpus_clear(sched->resched); _______________________________________________ Xenomai-git mailing list Xenomai-git@gna.org https://mail.gna.org/listinfo/xenomai-git