Revert "Add spinlocks"
[fio.git] / arch / arch-ia64.h
CommitLineData
ebac4655
JA
1#ifndef ARCH_IA64_H
2#define ARCH_IA64_H
3
4#define ARCH (arch_ia64)
5
6#ifndef __NR_ioprio_set
7#define __NR_ioprio_set 1274
8#define __NR_ioprio_get 1275
9#endif
10
11#ifndef __NR_fadvise64
12#define __NR_fadvise64 1234
13#endif
14
8756e4d4
JA
15#ifndef __NR_sys_splice
16#define __NR_sys_splice 1297
17#define __NR_sys_tee 1301
18#define __NR_sys_vmsplice 1302
19#endif
20
db6defc7
JA
21#define nop asm volatile ("hint @pause" ::: "memory");
22#define read_barrier() asm volatile ("mf" ::: "memory")
44c47feb 23#define writebarrier() asm volatile ("mf" ::: "memory")
ebac4655 24
8f7e39dd
JA
25#define ia64_popcnt(x) \
26({ \
27 unsigned long ia64_intri_res; \
28 asm ("popcnt %0=%1" : "=r" (ia64_intri_res) : "r" (x)); \
29 ia64_intri_res; \
30})
31
32static inline unsigned long arch_ffz(unsigned long bitmask)
33{
34 return ia64_popcnt(bitmask & (~bitmask - 1));
35}
36#define ARCH_HAVE_FFZ
37
ebac4655 38#endif