Merge branch 'master' of https://github.com/vincentkfu/fio
[fio.git] / arch / arch-ppc.h
index 161c39c511937c9a0d4604a69fa3f63da1825f26..804d596aecc632cb27f547c90a5b2b997ef79b42 100644 (file)
@@ -8,21 +8,6 @@
 
 #define FIO_ARCH       (arch_ppc)
 
-#ifndef __NR_ioprio_set
-#define __NR_ioprio_set                273
-#define __NR_ioprio_get                274
-#endif
-
-#ifndef __NR_fadvise64
-#define __NR_fadvise64         233
-#endif
-
-#ifndef __NR_sys_splice
-#define __NR_sys_splice                283
-#define __NR_sys_tee           284
-#define __NR_sys_vmsplice      285
-#endif
-
 #define nop    do { } while (0)
 
 #ifdef __powerpc64__
@@ -77,7 +62,8 @@ static inline unsigned long long get_cpu_clock(void)
                "       cmpwi %0,0;\n"
                "       beq-  90b;\n"
        : "=r" (rval)
-       : "i" (SPRN_TBRL));
+       : "i" (SPRN_TBRL)
+       : "cr0");
 
        return rval;
 }
@@ -132,12 +118,12 @@ static void atb_clocktest(void)
 #endif
 
 #define ARCH_HAVE_INIT
-extern int tsc_reliable;
+extern bool tsc_reliable;
 
 static inline int arch_init(char *envp[])
 {
 #if 0
-       tsc_reliable = 1;
+       tsc_reliable = true;
        atb_clocktest();
 #endif
        return 0;