• Paul Mundt's avatar
    sh: consolidate atomic_cmpxchg()/atomic_add_unless() definitions. · 8c0b8139
    Paul Mundt authored
    The LL/SC and IRQ versions were using generic stubs while the GRB version
    was just reimplementing what it already had for the standard cmpxchg()
    code. As we have optimized cmpxchg() implementations that are decoupled
    from the atomic code, simply falling back on the generic wrapper does the
    right thing. With this in place the GRB case is unaffected while the
    LL/SC case gets to use its optimized cmpxchg().
    Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
    8c0b8139
atomic.h 1.95 KB