projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Set affinity before doing buffer and io_u allocs
[fio.git]
/
arch
/
arch-ia64.h
diff --git
a/arch/arch-ia64.h
b/arch/arch-ia64.h
index 3268acc51ea02fe1528e1f2477ff3bc42186d5e1..056f6365597424240c73d3129f8d6b74ac1e76f5 100644
(file)
--- a/
arch/arch-ia64.h
+++ b/
arch/arch-ia64.h
@@
-20,6
+20,7
@@
#define nop asm volatile ("hint @pause" ::: "memory");
#define read_barrier() asm volatile ("mf" ::: "memory")
#define nop asm volatile ("hint @pause" ::: "memory");
#define read_barrier() asm volatile ("mf" ::: "memory")
+#define write_barrier() asm volatile ("mf" ::: "memory")
#define ia64_popcnt(x) \
({ \
#define ia64_popcnt(x) \
({ \
@@
-28,9
+29,20
@@
ia64_intri_res; \
})
ia64_intri_res; \
})
-static inline unsigned long
fio
_ffz(unsigned long bitmask)
+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)
+{
+ unsigned long ret;
+
+ __asm__ __volatile__("mov %0=ar.itc" : "=r" (ret) : : "memory");
+ return ret;
+}
+
+#define ARCH_HAVE_FFZ
+#define ARCH_HAVE_CPU_CLOCK
+
#endif
#endif