Revert "Add spinlocks"
[fio.git] / arch / arch-x86_64.h
CommitLineData
ebac4655
JA
1#ifndef ARCH_X86_64_h
2#define ARCH_X86_64_h
3
4#define ARCH (arch_x86_64)
5
6#ifndef __NR_ioprio_set
7#define __NR_ioprio_set 251
8#define __NR_ioprio_get 252
9#endif
10
11#ifndef __NR_fadvise64
12#define __NR_fadvise64 221
13#endif
14
8756e4d4
JA
15#ifndef __NR_sys_splice
16#define __NR_sys_splice 275
17#define __NR_sys_tee 276
18#define __NR_sys_vmsplice 278
19#endif
20
1ff2a7eb 21#ifndef __NR_async_exec
36ddbc09
ZB
22#define __NR_async_exec 286
23#define __NR_async_wait 287
24#define __NR_umem_add 288
25#define __NR_async_thread 289
1ff2a7eb
JA
26#endif
27
cb25df61
JA
28#define FIO_HUGE_PAGE 2097152
29
1ff2a7eb
JA
30#define FIO_HAVE_SYSLET
31
db6defc7 32#define nop __asm__ __volatile__("rep;nop": : :"memory")
44c47feb
JA
33#define read_barrier() __asm__ __volatile__("lfence":::"memory")
34#define write_barrier() __asm__ __volatile__("sfence":::"memory")
ebac4655 35
6164890e 36static inline unsigned int arch_ffz(unsigned int bitmask)
8f7e39dd 37{
6164890e 38 __asm__("bsfl %1,%0" :"=r" (bitmask) :"r" (~bitmask));
8f7e39dd
JA
39 return bitmask;
40}
21df44a2 41#define ARCH_HAVE_FFZ
8f7e39dd 42
ebac4655 43#endif