Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LU-663 kernel: Some arch do not have NUMA features anymore
[fs/lustre-release.git]
/
libcfs
/
include
/
libcfs
/
linux
/
linux-prim.h
diff --git
a/libcfs/include/libcfs/linux/linux-prim.h
b/libcfs/include/libcfs/linux/linux-prim.h
index
dfe8af2
..
770c12c
100644
(file)
--- a/
libcfs/include/libcfs/linux/linux-prim.h
+++ b/
libcfs/include/libcfs/linux/linux-prim.h
@@
-96,7
+96,12
@@
#define CFS_NR_CPUS 1
#endif
#define CFS_NR_CPUS 1
#endif
+#ifdef HAVE_SET_CPUS_ALLOWED
#define cfs_set_cpus_allowed(t, mask) set_cpus_allowed(t, mask)
#define cfs_set_cpus_allowed(t, mask) set_cpus_allowed(t, mask)
+#else
+#define cfs_set_cpus_allowed(t, mask) set_cpus_allowed_ptr(t, &(mask))
+#endif
+
/*
* cache
*/
/*
* cache
*/