Whamcloud - gitweb
178eadf6490f316468da9cae4cbd28f7ae39fed9
[fs/lustre-release.git] / lnet / klnds / socklnd / socklnd_lib-winnt.h
1 #define DEBUG_PORTAL_ALLOC
2 #ifndef EXPORT_SYMTAB
3 # define EXPORT_SYMTAB
4 #endif
5
6 #ifndef __WINNT_TDILND_LIB_H__
7 #define __WINNT_TDILND_LIB_H__
8
9 #include <libcfs/libcfs.h>
10
11 #ifndef CONFIG_SMP
12
13 static inline
14 int ksocknal_nsched(void)
15 {
16         return 1;
17 }
18
19 #else
20
21 static inline int
22 ksocknal_nsched(void)
23 {
24         return num_online_cpus();
25 }
26
27 static inline int
28 ksocknal_sched2cpu(int i)
29 {
30         return i;
31 }
32
33 static inline int
34 ksocknal_irqsched2cpu(int i)
35 {
36         return i;
37 }
38
39 #endif
40
41 #endif