Make SH port work for packagers that don't differentiate between SH4 and SH4A
[fio.git] / arch / arch-ia64.h
index b3ee0c38bc13c442d2166eeabcb0a2c745c763e6..056f6365597424240c73d3129f8d6b74ac1e76f5 100644 (file)
@@ -18,7 +18,9 @@
 #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)                                                 \
 ({                                                                     \
        ia64_intri_res;                                                 \
 })
 
-static inline unsigned long ffz(unsigned long bitmask)
+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