X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=arch%2Farch-ppc.h;h=804d596aecc632cb27f547c90a5b2b997ef79b42;hb=8287fee8a6f8ebb43081a3087d3a98bf6dc7f551;hp=161c39c511937c9a0d4604a69fa3f63da1825f26;hpb=1c73ebeac14187f062a3f18a528942cf648e375e;p=fio.git diff --git a/arch/arch-ppc.h b/arch/arch-ppc.h index 161c39c5..804d596a 100644 --- a/arch/arch-ppc.h +++ b/arch/arch-ppc.h @@ -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;