Module: xenomai-jki
Branch: for-upstream
Commit: f92a11f5c61c5611f088c695839186e1155d9da0
URL:    
http://git.xenomai.org/?p=xenomai-jki.git;a=commit;h=f92a11f5c61c5611f088c695839186e1155d9da0

Author: Jan Kiszka <jan.kis...@siemens.com>
Date:   Thu Nov  4 17:20:42 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 f0f9c64..0efc9c2 100644
--- a/ksrc/nucleus/pod.c
+++ b/ksrc/nucleus/pod.c
@@ -2175,7 +2175,7 @@ static inline int __xnpod_test_resched(struct xnsched 
*sched)
        xnarch_cpu_clear(cpu, sched->resched);
 #ifdef CONFIG_SMP
        /* Send resched IPI to remote CPU(s). */
-       if (unlikely(xnsched_resched_p(sched))) {
+       if (unlikely(!xnarch_cpus_empty(sched->resched))) {
                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

Reply via email to