2005-09-06 15:16:25 -07:00
|
|
|
#ifndef _ASM_FUTEX_H
|
|
|
|
|
#define _ASM_FUTEX_H
|
|
|
|
|
|
|
|
|
|
#ifdef __KERNEL__
|
|
|
|
|
|
|
|
|
|
#include <linux/futex.h>
|
|
|
|
|
#include <asm/errno.h>
|
|
|
|
|
#include <asm/uaccess.h>
|
|
|
|
|
|
2006-01-06 00:11:43 -08:00
|
|
|
extern int futex_atomic_op_inuser(int encoded_op, int __user *uaddr);
|
2005-09-06 15:16:25 -07:00
|
|
|
|
2006-03-27 01:16:21 -08:00
|
|
|
static inline int
|
2006-03-27 01:16:27 -08:00
|
|
|
futex_atomic_cmpxchg_inatomic(int __user *uaddr, int oldval, int newval)
|
2006-03-27 01:16:21 -08:00
|
|
|
{
|
|
|
|
|
return -ENOSYS;
|
|
|
|
|
}
|
|
|
|
|
|
2005-09-06 15:16:25 -07:00
|
|
|
#endif
|
|
|
|
|
#endif
|