]> 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)
commit20d4e517a940f7aad57af05b20981a6753d5ecfc
tree1ce0cd003c4c6d8cb5d42130e47fa7b9c078a6ea
parent58c5eeb9463f48c1c40f0cec9f89f11aedf9c0ec
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 d050885e1e1bb0e52dc6a873d4324a67054cf468 ("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