Module: xenomai-2.5
Branch: master
Commit: 227eeace82fbc49d7bd10397c596c48b700decfa
URL:    
http://git.xenomai.org/?p=xenomai-2.5.git;a=commit;h=227eeace82fbc49d7bd10397c596c48b700decfa

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 a5993fa..7ac9a32 100644
--- a/ksrc/nucleus/pod.c
+++ b/ksrc/nucleus/pod.c
@@ -2163,7 +2163,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

Reply via email to