projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fio: support modulus for the arithmetic parser
[fio.git]
/
arch
/
arch-ia64.h
diff --git
a/arch/arch-ia64.h
b/arch/arch-ia64.h
index f4464c48b2fa146b6386d8c49cab5179f7484692..8e8dd7fd4215307879a1d00e46f9b960589e3ba5 100644
(file)
--- a/
arch/arch-ia64.h
+++ b/
arch/arch-ia64.h
@@
-34,14
+34,22
@@
static inline unsigned long arch_ffz(unsigned long bitmask)
return ia64_popcnt(bitmask & (~bitmask - 1));
}
return ia64_popcnt(bitmask & (~bitmask - 1));
}
-static inline unsigned long get_cpu_clock(void)
+static inline unsigned long
long
get_cpu_clock(void)
{
{
- unsigned long ret;
+ unsigned long
long
ret;
__asm__ __volatile__("mov %0=ar.itc" : "=r" (ret) : : "memory");
return ret;
}
__asm__ __volatile__("mov %0=ar.itc" : "=r" (ret) : : "memory");
return ret;
}
+#define ARCH_HAVE_INIT
+extern int tsc_reliable;
+static inline int arch_init(char *envp[])
+{
+ tsc_reliable = 1;
+ return 0;
+}
+
#define ARCH_HAVE_FFZ
#define ARCH_HAVE_CPU_CLOCK
#define ARCH_HAVE_FFZ
#define ARCH_HAVE_CPU_CLOCK