aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/smp_compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/smp_compat.h')
-rw-r--r--include/linux/smp_compat.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/linux/smp_compat.h b/include/linux/smp_compat.h
new file mode 100644
index 000000000..4da35f4ad
--- /dev/null
+++ b/include/linux/smp_compat.h
@@ -0,0 +1,16 @@
+#ifndef _SPL_SMP_COMPAT_H
+#define _SPL_SMP_COMPAT_H
+
+#include <linux/smp.h>
+
+#ifdef HAVE_3ARGS_ON_EACH_CPU
+
+#define spl_on_each_cpu(func,info,wait) on_each_cpu(func,info,wait)
+
+#else
+
+#define spl_on_each_cpu(func,info,wait) on_each_cpu(func,info,0,wait)
+
+#endif /* HAVE_3ARGS_ON_EACH_CPU */
+
+#endif /* _SPL_SMP_COMPAT_H */