#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__ */