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

Author: Gilles Chanteperdrix <gilles.chanteperd...@xenomai.org>
Date:   Fri Dec 21 08:03:49 2012 +0100

wrappers: provide definition of cpu_online() for older kernels

---

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

diff --git a/include/asm-generic/wrappers.h b/include/asm-generic/wrappers.h
index 5a06035..cad2adf 100644
--- a/include/asm-generic/wrappers.h
+++ b/include/asm-generic/wrappers.h
@@ -367,6 +367,8 @@ static inline void *kzalloc(size_t size, int flags)
        return ptr;
 }
 
+#define cpu_online(cpu)               (cpu_online_map & (1UL << (cpu)))
+
 #else /* LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0) */
 
 #define compat_module_param_array(name, type, count, perm) \


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

Reply via email to