Release 4.14 arch/sh/include/asm/futex-irq.h
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __ASM_SH_FUTEX_IRQ_H
#define __ASM_SH_FUTEX_IRQ_H
static inline int atomic_futex_op_cmpxchg_inatomic(u32 *uval,
u32 __user *uaddr,
u32 oldval, u32 newval)
{
unsigned long flags;
int ret;
u32 prev = 0;
local_irq_save(flags);
ret = get_user(prev, uaddr);
if (!ret && oldval == prev)
ret = put_user(newval, uaddr);
local_irq_restore(flags);
*uval = prev;
return ret;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Kaz Kojima | 65 | 82.28% | 1 | 33.33% |
Michel Lespinasse | 14 | 17.72% | 2 | 66.67% |
Total | 79 | 100.00% | 3 | 100.00% |
#endif /* __ASM_SH_FUTEX_IRQ_H */
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
Kaz Kojima | 74 | 83.15% | 1 | 25.00% |
Michel Lespinasse | 14 | 15.73% | 2 | 50.00% |
Greg Kroah-Hartman | 1 | 1.12% | 1 | 25.00% |
Total | 89 | 100.00% | 4 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.