Whamcloud - gitweb
LU-13258 llite: bind readahead workqueue to CPT set
[fs/lustre-release.git] / libcfs / include / libcfs / linux / linux-cpu.h
index ab6b55e..8353f69 100644 (file)
 #ifndef __LIBCFS_LINUX_CPU_H__
 #define __LIBCFS_LINUX_CPU_H__
 
+#include <linux/cpu.h>
+
 #ifndef HAVE_TOPOLOGY_SIBLING_CPUMASK
 # define topology_sibling_cpumask(cpu) topology_thread_cpumask(cpu)
 #endif /* HAVE_TOPOLOGY_SIBLING_CPUMASK */
 
+#ifndef HAVE_CPUS_READ_LOCK
+# define cpus_read_lock                get_online_cpus
+# define cpus_read_unlock      put_online_cpus
+#endif
+
 #endif /* __LIBCFS_LINUX_CPU_H__ */