blob: 4bea27f50a7ab4f72d8cbb28cecf181c89e9cf28 [file] [log] [blame]
Jakub Jelinek4732efb2005-09-06 15:16:25 -07001#ifndef _ASM_FUTEX_H
2#define _ASM_FUTEX_H
3
4#ifdef __KERNEL__
5
6#include <linux/futex.h>
7#include <asm/errno.h>
8#include <asm/uaccess.h>
9
Michel Lespinasse8d7718a2011-03-10 18:50:58 -080010extern int futex_atomic_op_inuser(int encoded_op, u32 __user *uaddr);
Jakub Jelinek4732efb2005-09-06 15:16:25 -070011
Ingo Molnare9056f12006-03-27 01:16:21 -080012static inline int
Michel Lespinasse8d7718a2011-03-10 18:50:58 -080013futex_atomic_cmpxchg_inatomic(u32 *uval, u32 __user *uaddr,
14 u32 oldval, u32 newval)
Ingo Molnare9056f12006-03-27 01:16:21 -080015{
16 return -ENOSYS;
17}
18
Jakub Jelinek4732efb2005-09-06 15:16:25 -070019#endif
20#endif