]> git.baikalelectronics.ru Git - kernel.git/commit
sh: define __smp_xxx, 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, 12 Jan 2016 18:46:57 +0000 (20:46 +0200)
commitd050885e1e1bb0e52dc6a873d4324a67054cf468
treecdf5acfa14f0ea661640646572181d1250c7572d
parent34cf221f4a10770f1754fe7f329358156eb78ffd
sh: define __smp_xxx, 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.

define __smp_store_mb instead: code in asm-generic/barrier.h
will then define smp_store_mb correctly depending on
CONFIG_SMP.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
arch/sh/include/asm/barrier.h