summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikhail Malygin <mikhail@malygin.me>2019-11-03 09:53:12 +0000
committerMikhail Malygin <mikhail@malygin.me>2019-11-03 09:56:02 +0000
commitdeda87e3db9d0a88e493f33f38d80b9e432ee3b8 (patch)
tree053b64f882d7e32b955b561c1d14fc4937391090
parentf89cfed7d28f76e99ee7520d6d350b9847fab07c (diff)
downloadfio-deda87e3db9d0a88e493f33f38d80b9e432ee3b8.tar.gz
fio-deda87e3db9d0a88e493f33f38d80b9e432ee3b8.tar.bz2
Enable io_uring engine on powerpc arch
Signed-off-by: Mikhail Malygin <mikhail@malygin.me>
-rw-r--r--arch/arch-ppc.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/arch-ppc.h b/arch/arch-ppc.h
index 804d596a..46246bae 100644
--- a/arch/arch-ppc.h
+++ b/arch/arch-ppc.h
@@ -24,6 +24,18 @@
#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;