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

Author: Philippe Gerum <r...@xenomai.org>
Date:   Fri Dec 21 12:36:08 2012 +0100

wrappers: enable cpu_online for 2.4 kernels

---

 include/asm-generic/wrappers.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/asm-generic/wrappers.h b/include/asm-generic/wrappers.h
index 6a3bf43..de1f0d7 100644
--- a/include/asm-generic/wrappers.h
+++ b/include/asm-generic/wrappers.h
@@ -715,6 +715,7 @@ static inline void wrap_proc_dir_entry_owner(struct 
proc_dir_entry *entry)
 
 #ifndef cpu_online_map
 #define cpu_online_mask (&cpu_online_map)
+#endif /* !cpu_online_map */
 #ifndef cpu_online
 #ifdef CONFIG_SMP
 #define cpu_online(cpu)        (cpu_online_map & (1UL << (cpu)))
@@ -722,7 +723,6 @@ static inline void wrap_proc_dir_entry_owner(struct 
proc_dir_entry *entry)
 #define cpu_online(cpu)        ((cpu) == 0)
 #endif /* !CONFIG_SMP */
 #endif /* !cpu_online */
-#endif /* !cpu_online_map */
 
 static inline
 unsigned long vm_mmap(struct file *file, unsigned long addr,


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

Reply via email to