Whamcloud - gitweb
- landing of b_hd_cleanup_merge to HEAD.
[fs/lustre-release.git] / lnet / include / linux / portals_compat25.h
index 9ab4020..7fe6dfc 100644 (file)
@@ -80,4 +80,12 @@ extern int is_kernel_text_address(unsigned long addr);
 #define PAGE_LIST(page) ((page)->lru)
 #endif
 
+#ifndef HAVE_CPU_ONLINE
+#define cpu_online(cpu) (test_bit(cpu_online_map, &(cpu)))
+#endif
+#ifndef HAVE_CPUMASK_T
+#define cpu_set(cpu, map) (set_bit(cpu, &(map)))
+typedef unsigned long cpumask_t;
+#endif
+
 #endif /* _PORTALS_COMPAT_H */