Alexander Duyck
8a44971841
arch: Cleanup read_barrier_depends() and comments
...
This patch is meant to cleanup the handling of read_barrier_depends and
smp_read_barrier_depends. In multiple spots in the kernel headers
read_barrier_depends is defined as "do {} while (0)", however we then go
into the SMP vs non-SMP sections and have the SMP version reference
read_barrier_depends, and the non-SMP define it as yet another empty
do/while.
With this commit I went through and cleaned out the duplicate definitions
and reduced the number of definitions down to 2 per header. In addition I
moved the 50 line comments for the macro from the x86 and mips headers that
defined it as an empty do/while to those that were actually defining the
macro, alpha and blackfin.
Signed-off-by: Alexander Duyck <[email protected] >
Signed-off-by: David S. Miller <[email protected] >
2014-12-11 21:15:05 -05:00
Peter Zijlstra
b7bb7d9b28
arch,blackfin: Convert smp_mb__*()
...
Blackfin's atomic primitives do not imply a full barrier as whitnessed
from its SMP smp_mb__{before,after}_clear_bit() implementations.
However since !SMP smp_mb() reduces to barrier() remove everything and
rely on the asm-generic/barrier.h implentation.
Signed-off-by: Peter Zijlstra <[email protected] >
Acked-by: Paul E. McKenney <[email protected] >
Link: http://lkml.kernel.org/n/[email protected]
Cc: Geert Uytterhoeven <[email protected] >
Cc: Linus Torvalds <[email protected] >
Cc: Mathieu Desnoyers <[email protected] >
Cc: Steven Miao <[email protected] >
Cc: [email protected]
Cc: [email protected]
Signed-off-by: Ingo Molnar <[email protected] >
2014-04-18 11:40:34 +02:00
Peter Zijlstra
93ea02bb84
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 <[email protected] >
Reviewed-by: "Paul E. McKenney" <[email protected] >
Reviewed-by: Mathieu Desnoyers <[email protected] >
Signed-off-by: Peter Zijlstra <[email protected] >
Cc: Michael Ellerman <[email protected] >
Cc: Michael Neuling <[email protected] >
Cc: Russell King <[email protected] >
Cc: Heiko Carstens <[email protected] >
Cc: Linus Torvalds <[email protected] >
Cc: Martin Schwidefsky <[email protected] >
Cc: Victor Kaplansky <[email protected] >
Cc: Tony Luck <[email protected] >
Cc: Oleg Nesterov <[email protected] >
Cc: Benjamin Herrenschmidt <[email protected] >
Cc: Frederic Weisbecker <[email protected] >
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected] >
2014-01-12 10:37:15 +01:00
David Howells
3bed8d6746
Disintegrate asm/system.h for Blackfin [ver #2 ]
...
Disintegrate asm/system.h for Blackfin.
Signed-off-by: David Howells <[email protected] >
cc: [email protected]
Signed-off-by: Bob Liu <[email protected] >
2012-03-21 11:00:08 +08:00