X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=arch%2Farch-ppc.h;h=8313331f6fd8fd23d59312027b4337197a6252b2;hp=0cc0cbda7d69890e10ff41816d836b4189684963;hb=9ddf9439052f01afbf33fd1415010eee4e76908b;hpb=3ba1ba7f3d0fde62817e3e0c2aa284759de96ec8 diff --git a/arch/arch-ppc.h b/arch/arch-ppc.h index 0cc0cbda..8313331f 100644 --- a/arch/arch-ppc.h +++ b/arch/arch-ppc.h @@ -1,5 +1,5 @@ #ifndef ARCH_PPC_H -#define ARCH_PPH_H +#define ARCH_PPC_H #include #include @@ -72,9 +72,9 @@ static inline unsigned long long get_cpu_clock(void) tbl = mfspr(SPRN_ATBL); tbu1 = mfspr(SPRN_ATBU); } else { - __asm__ __volatile__("mftbu %0" : "=r"(tbu0)); - __asm__ __volatile__("mftb %0" : "=r"(tbl) ); - __asm__ __volatile__("mftbu %0" : "=r"(tbu1)); + tbu0 = mfspr(SPRN_TBRU); + tbl = mfspr(SPRN_TBRL); + tbu1 = mfspr(SPRN_TBRU); } } while (tbu0 != tbu1); @@ -118,6 +118,12 @@ static inline int arch_init(char *envp[]) } #define ARCH_HAVE_FFZ -#define ARCH_HAVE_CPU_CLOCK + +/* + * We don't have it on all platforms, lets comment this out until we + * can handle it more intelligently. + * + * #define ARCH_HAVE_CPU_CLOCK + */ #endif