Re: [RFC] arch: Introduce new TSO memory barrier smp_tmb()

From: Geert Uytterhoeven
Date: Wed Nov 06 2013 - 07:51:16 EST


On Wed, Nov 6, 2013 at 1:39 PM, Peter Zijlstra <peterz@xxxxxxxxxxxxx> wrote:
> Documentation/memory-barriers.txt | 157 +++++++++++++++++-----------------
> arch/alpha/include/asm/barrier.h | 15 +++
> arch/arc/include/asm/barrier.h | 15 +++
> arch/arm/include/asm/barrier.h | 15 +++
> arch/arm64/include/asm/barrier.h | 50 ++++++++++
> arch/avr32/include/asm/barrier.h | 14 +++
> arch/blackfin/include/asm/barrier.h | 15 +++
> arch/cris/include/asm/barrier.h | 15 +++
> arch/frv/include/asm/barrier.h | 15 +++
> arch/h8300/include/asm/barrier.h | 15 +++
> arch/hexagon/include/asm/barrier.h | 15 +++
> arch/ia64/include/asm/barrier.h | 49 ++++++++++
> arch/m32r/include/asm/barrier.h | 15 +++
> arch/m68k/include/asm/barrier.h | 15 +++
> arch/metag/include/asm/barrier.h | 15 +++
> arch/microblaze/include/asm/barrier.h | 15 +++
> arch/mips/include/asm/barrier.h | 15 +++
> arch/mn10300/include/asm/barrier.h | 15 +++
> arch/parisc/include/asm/barrier.h | 15 +++
> arch/powerpc/include/asm/barrier.h | 21 ++++
> arch/s390/include/asm/barrier.h | 15 +++
> arch/score/include/asm/barrier.h | 15 +++
> arch/sh/include/asm/barrier.h | 15 +++
> arch/sparc/include/asm/barrier_32.h | 15 +++
> arch/sparc/include/asm/barrier_64.h | 15 +++
> arch/tile/include/asm/barrier.h | 15 +++
> arch/unicore32/include/asm/barrier.h | 15 +++
> arch/x86/include/asm/barrier.h | 15 +++
> arch/xtensa/include/asm/barrier.h | 15 +++
> include/linux/compiler.h | 9 +
> 30 files changed, 581 insertions(+), 79 deletions(-)

This is screaming for a default implementation in asm-generic.

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
--
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/