Re: [PATCH 29/31] arch,xtensa: Convert smp_mb__*

From: Max Filippov
Date: Wed Mar 19 2014 - 09:12:23 EST


Hi Peter,

On Wed, Mar 19, 2014 at 10:47 AM, Peter Zijlstra <peterz@xxxxxxxxxxxxx> wrote:
> Xtensa SMP has ll/sc which is fully serializing, therefore its exising

One minor correction: current xtensa ISA doens't have ll/sc, it only
has cas (s32c1i instruction), which is fully serializing.

> smp_mb__{before,after}_clear_bit() appear unduly heavy.
>
> Implement the new barriers are barrier().
>
> Signed-off-by: Peter Zijlstra <peterz@xxxxxxxxxxxxx>
> ---
> arch/xtensa/include/asm/atomic.h | 7 +------
> arch/xtensa/include/asm/barrier.h | 3 +++
> arch/xtensa/include/asm/bitops.h | 4 +---
> 3 files changed, 5 insertions(+), 9 deletions(-)

--
Thanks.
-- Max
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/