06 Feb, 2018
1 commit
-
Introduce an architecture function that ensures the current CPU
issues a core serializing instruction before returning to usermode.This is needed for the membarrier "sync_core" command.
Architectures defining the sync_core_before_usermode() static inline
need to select ARCH_HAS_SYNC_CORE_BEFORE_USERMODE.Signed-off-by: Mathieu Desnoyers
Acked-by: Thomas Gleixner
Acked-by: Peter Zijlstra (Intel)
Cc: Andrea Parri
Cc: Andrew Hunter
Cc: Andy Lutomirski
Cc: Arnd Bergmann
Cc: Avi Kivity
Cc: Benjamin Herrenschmidt
Cc: Boqun Feng
Cc: Dave Watson
Cc: David Sehr
Cc: Greg Hackmann
Cc: H. Peter Anvin
Cc: Linus Torvalds
Cc: Maged Michael
Cc: Michael Ellerman
Cc: Paul E. McKenney
Cc: Paul Mackerras
Cc: Russell King
Cc: Will Deacon
Cc: linux-api@vger.kernel.org
Cc: linux-arch@vger.kernel.org
Link: http://lkml.kernel.org/r/20180129202020.8515-7-mathieu.desnoyers@efficios.com
Signed-off-by: Ingo Molnar