Searched refs:oldval (Results 1 – 1 of 1) sorted by relevance
103 inline long atomic_cmpxchg(atomic_t *ato, long oldval, long newval) in atomic_cmpxchg() argument105 bool success = arch_try_cmpxchg(&ato->value, &oldval, newval); in atomic_cmpxchg()106 return success ? oldval : newval; in atomic_cmpxchg()