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
Branch b1_4
[fs/lustre-release.git]
/
lnet
/
include
/
libcfs
/
linux
/
kp30.h
diff --git
a/lnet/include/libcfs/linux/kp30.h
b/lnet/include/libcfs/linux/kp30.h
index
46bab8b
..
fb1ae3e
100644
(file)
--- a/
lnet/include/libcfs/linux/kp30.h
+++ b/
lnet/include/libcfs/linux/kp30.h
@@
-173,6
+173,13
@@
static inline void our_cond_resched(void)
# define printf(format, b...) CDEBUG(D_OTHER, format , ## b)
# define time(a) CURRENT_TIME
# define printf(format, b...) CDEBUG(D_OTHER, format , ## b)
# define time(a) CURRENT_TIME
+#ifndef num_possible_cpus
+#define num_possible_cpus() NR_CPUS
+#endif
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
+#define i_size_read(a) ((a)->i_size)
+#endif
+
#else /* !__KERNEL__ */
# include <stdio.h>
# include <stdlib.h>
#else /* !__KERNEL__ */
# include <stdio.h>
# include <stdlib.h>