]> git.baikalelectronics.ru Git - kernel.git/commit
ARCv2: barriers
authorVineet Gupta <vgupta@synopsys.com>
Wed, 11 Mar 2015 16:12:37 +0000 (21:42 +0530)
committerVineet Gupta <vgupta@synopsys.com>
Thu, 25 Jun 2015 00:30:17 +0000 (06:00 +0530)
commitd2ca32752f70fe77884396314a21703f49c22054
tree2a5524af921d907162b1f476537117a02c02a127
parentfb051747a77808d7c916f03e02135c27e633c2a8
ARCv2: barriers

ARCv2 based HS38 cores are weakly ordered and thus explicit barriers for
kernel proper.

SMP barrier is provided by DMB instruction which also guarantees local
barrier hence used as backend of smp_*mb() as well as *mb() APIs

Also hookup barriers into MMIO accessors to avoid ordering issues in IO

Cc: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/include/asm/Kbuild
arch/arc/include/asm/barrier.h [new file with mode: 0644]
arch/arc/include/asm/io.h