1 #ifndef __ASM_SH_FUTEX_IRQ_H
2 #define __ASM_SH_FUTEX_IRQ_H
4 static inline int atomic_futex_op_cmpxchg_inatomic(u32
*uval
,
6 u32 oldval
, u32 newval
)
12 local_irq_save(flags
);
14 ret
= get_user(prev
, uaddr
);
15 if (!ret
&& oldval
== prev
)
16 ret
= put_user(newval
, uaddr
);
18 local_irq_restore(flags
);
24 #endif /* __ASM_SH_FUTEX_IRQ_H */