blob: 08b3d1da358398e111ccf01f50227ef8f60a7ffc [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
David Howells5c40f7f2006-01-06 00:11:43 -080010extern int futex_atomic_op_inuser(int encoded_op, int __user *uaddr);
Jakub Jelinek4732efb2005-09-06 15:16:25 -070011
Ingo Molnare9056f12006-03-27 01:16:21 -080012static inline int
Ingo Molnar8f17d3a2006-03-27 01:16:27 -080013futex_atomic_cmpxchg_inatomic(int __user *uaddr, int oldval, int newval)
Ingo Molnare9056f12006-03-27 01:16:21 -080014{
15 return -ENOSYS;
16}
17
Jakub Jelinek4732efb2005-09-06 15:16:25 -070018#endif
19#endif