Module: xenomai-2.6
Branch: master
Commit: 8417949f5e7d1b4483eb3b6344ec5f3124ecf740
URL:    
http://git.xenomai.org/?p=xenomai-2.6.git;a=commit;h=8417949f5e7d1b4483eb3b6344ec5f3124ecf740

Author: Gilles Chanteperdrix <gilles.chanteperd...@xenomai.org>
Date:   Wed Oct  3 23:33:39 2012 +0200

hal/generic: do not set not online cpus in rthal_supported_cpus

---

 ksrc/arch/generic/hal.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ksrc/arch/generic/hal.c b/ksrc/arch/generic/hal.c
index ac6c171..ac43f0e 100644
--- a/ksrc/arch/generic/hal.c
+++ b/ksrc/arch/generic/hal.c
@@ -538,7 +538,7 @@ int rthal_init(void)
 #ifdef CONFIG_SMP
     int cpu;
     cpus_clear(rthal_supported_cpus);
-    for (cpu = 0; cpu < BITS_PER_LONG; cpu++)
+    for (cpu = 0; cpu < num_online_cpus(); cpu++)
            if (supported_cpus_arg & (1 << cpu))
                    cpu_set(cpu, rthal_supported_cpus);
 #endif /* CONFIG_SMP */


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git

Reply via email to