From: Jens Axboe Date: Wed, 24 Mar 2010 12:35:28 +0000 (+0100) Subject: Add IA64 support for CPU clock X-Git-Tag: fio-1.39-rc1~22 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=ab4800473091e0c3bd43d9e96ed0fa406d231186;p=fio.git Add IA64 support for CPU clock Signed-off-by: Jens Axboe --- diff --git a/arch/arch-ia64.h b/arch/arch-ia64.h index a8bb23a3..056f6365 100644 --- a/arch/arch-ia64.h +++ b/arch/arch-ia64.h @@ -33,6 +33,16 @@ static inline unsigned long arch_ffz(unsigned long bitmask) { return ia64_popcnt(bitmask & (~bitmask - 1)); } + +static inline unsigned long get_cpu_clock(void) +{ + unsigned long ret; + + __asm__ __volatile__("mov %0=ar.itc" : "=r" (ret) : : "memory"); + return ret; +} + #define ARCH_HAVE_FFZ +#define ARCH_HAVE_CPU_CLOCK #endif