arch: Clean up asm/barrier.h implementations using asm-generic/barrier.h
We're going to be adding a few new barrier primitives, and in order to avoid endless duplication make more agressive use of asm-generic/barrier.h. Change the asm-generic/barrier.h such that it allows partial barrier definitions and fills out the rest with defaults. There are a few architectures (m32r, m68k) that could probably do away with their barrier.h file entirely but are kept for now due to their unconventional nop() implementation. Suggested-by: Geert Uytterhoeven <geert@linux-m68k.org> Reviewed-by: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> Reviewed-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca> Signed-off-by: Peter Zijlstra <peterz@infradead.org> Cc: Michael Ellerman <michael@ellerman.id.au> Cc: Michael Neuling <mikey@neuling.org> Cc: Russell King <linux@arm.linux.org.uk> Cc: Heiko Carstens <heiko.carstens@de.ibm.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Martin Schwidefsky <schwidefsky@de.ibm.com> Cc: Victor Kaplansky <VICTORK@il.ibm.com> Cc: Tony Luck <tony.luck@intel.com> Cc: Oleg Nesterov <oleg@redhat.com> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: Frederic Weisbecker <fweisbec@gmail.com> Link: http://lkml.kernel.org/r/20131213150640.846368594@infradead.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
Showing
- arch/alpha/include/asm/barrier.h 5 additions, 20 deletionsarch/alpha/include/asm/barrier.h
- arch/arc/include/asm/Kbuild 1 addition, 0 deletionsarch/arc/include/asm/Kbuild
- arch/avr32/include/asm/barrier.h 5 additions, 12 deletionsarch/avr32/include/asm/barrier.h
- arch/blackfin/include/asm/barrier.h 1 addition, 17 deletionsarch/blackfin/include/asm/barrier.h
- arch/cris/include/asm/Kbuild 1 addition, 0 deletionsarch/cris/include/asm/Kbuild
- arch/cris/include/asm/barrier.h 0 additions, 25 deletionsarch/cris/include/asm/barrier.h
- arch/frv/include/asm/barrier.h 1 addition, 7 deletionsarch/frv/include/asm/barrier.h
- arch/hexagon/include/asm/Kbuild 1 addition, 0 deletionsarch/hexagon/include/asm/Kbuild
- arch/m32r/include/asm/barrier.h 1 addition, 79 deletionsarch/m32r/include/asm/barrier.h
- arch/m68k/include/asm/barrier.h 1 addition, 13 deletionsarch/m68k/include/asm/barrier.h
- arch/microblaze/include/asm/Kbuild 1 addition, 0 deletionsarch/microblaze/include/asm/Kbuild
- arch/microblaze/include/asm/barrier.h 0 additions, 27 deletionsarch/microblaze/include/asm/barrier.h
- arch/mn10300/include/asm/Kbuild 1 addition, 0 deletionsarch/mn10300/include/asm/Kbuild
- arch/mn10300/include/asm/barrier.h 0 additions, 37 deletionsarch/mn10300/include/asm/barrier.h
- arch/parisc/include/asm/Kbuild 1 addition, 0 deletionsarch/parisc/include/asm/Kbuild
- arch/parisc/include/asm/barrier.h 0 additions, 35 deletionsarch/parisc/include/asm/barrier.h
- arch/score/include/asm/Kbuild 1 addition, 0 deletionsarch/score/include/asm/Kbuild
- arch/score/include/asm/barrier.h 0 additions, 16 deletionsarch/score/include/asm/barrier.h
- arch/sh/include/asm/barrier.h 3 additions, 18 deletionsarch/sh/include/asm/barrier.h
- arch/sparc/include/asm/barrier_32.h 2 additions, 10 deletionsarch/sparc/include/asm/barrier_32.h
arch/cris/include/asm/barrier.h
deleted
100644 → 0
arch/mn10300/include/asm/barrier.h
deleted
100644 → 0
arch/parisc/include/asm/barrier.h
deleted
100644 → 0
arch/score/include/asm/barrier.h
deleted
100644 → 0
Please register or sign in to comment