projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make SH port work for packagers that don't differentiate between SH4 and SH4A
[fio.git]
/
arch
/
arch-ia64.h
diff --git
a/arch/arch-ia64.h
b/arch/arch-ia64.h
index 7baccca509feaf0ba168cea082275117151a10d4..056f6365597424240c73d3129f8d6b74ac1e76f5 100644
(file)
--- a/
arch/arch-ia64.h
+++ b/
arch/arch-ia64.h
@@
-18,7
+18,9
@@
#define __NR_sys_vmsplice 1302
#endif
#define __NR_sys_vmsplice 1302
#endif
-#define nop asm volatile ("hint @pause" ::: "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) \
({ \
@@
-27,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