Enable io_uring engine on powerpc arch
authorMikhail Malygin <mikhail@malygin.me>
Sun, 3 Nov 2019 09:53:12 +0000 (09:53 +0000)
committerMikhail Malygin <mikhail@malygin.me>
Sun, 3 Nov 2019 09:56:02 +0000 (09:56 +0000)
Signed-off-by: Mikhail Malygin <mikhail@malygin.me>
arch/arch-ppc.h

index 804d596..46246ba 100644 (file)
 #define PPC_CNTLZL "cntlzw"
 #endif
 
+#define ARCH_HAVE_IOURING
+
+#ifndef __NR_sys_io_uring_setup
+#define __NR_sys_io_uring_setup                425
+#endif
+#ifndef __NR_sys_io_uring_enter
+#define __NR_sys_io_uring_enter                426
+#endif
+#ifndef __NR_sys_io_uring_register
+#define __NR_sys_io_uring_register     427
+#endif
+
 static inline int __ilog2(unsigned long bitmask)
 {
        int lz;