]> git.baikalelectronics.ru Git - kernel.git/commit
sh: fix smp_store_mb for !SMP
authorMichael S. Tsirkin <mst@redhat.com>
Sun, 27 Dec 2015 13:04:42 +0000 (15:04 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 26 Jan 2016 08:18:29 +0000 (10:18 +0200)
commitd020fe66a1a0a5782d74796ce75d2fc258adaf79
tree1ce0cd003c4c6d8cb5d42130e47fa7b9c078a6ea
parent53f4aa1821f2c973a24fd5053a5434fdb352c229
sh: fix smp_store_mb for !SMP

sh variant of smp_store_mb() calls xchg() on !SMP which is stronger than
implied by both the name and the documentation.

commit b4e1e356b6bb0044ca4e1032293366e797d08a8f ("sh: define __smp_xxx,
fix smp_store_mb for !SMP") was supposed to fix it but
left the bug in place.

Drop smp_store_mb, so that code in asm-generic/barrier.h
will define it correctly depending on CONFIG_SMP.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
arch/sh/include/asm/barrier.h