lkml.org 
[lkml]   [2014]   [Mar]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH 29/31] arch,xtensa: Convert smp_mb__*
From
Hi Peter,

On Wed, Mar 19, 2014 at 10:47 AM, Peter Zijlstra <peterz@infradead.org> 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@infradead.org>
> ---
> 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


\
 
 \ /
  Last update: 2014-03-19 16:01    [W:0.183 / U:11.132 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site