]> nv-tegra.nvidia Code Review - linux-2.6.git/commit
x86: Issue at least one memory barrier in stop_machine_text_poke()
authorMasami Hiramatsu <mhiramat@redhat.com>
Thu, 4 Mar 2010 03:38:50 +0000 (22:38 -0500)
committerIngo Molnar <mingo@elte.hu>
Thu, 4 Mar 2010 10:39:21 +0000 (11:39 +0100)
commite5a11016643d1ab7172193591506d33a844734cc
tree45e9c865c1e25c19142cb395e98ef13dd6d6f145
parent32cb0dd50672056e510ccab442dc9c3a03be649e
x86: Issue at least one memory barrier in stop_machine_text_poke()

Fix stop_machine_text_poke() to issue smp_mb() before exiting
waiting loop, and use cpu_relax() for waiting.

Changes in v2:
 - Don't use ACCESS_ONCE().

Signed-off-by: Masami Hiramatsu <mhiramat@redhat.com>
Acked-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: systemtap <systemtap@sources.redhat.com>
Cc: DLE <dle-develop@lists.sourceforge.net>
Cc: Jason Baron <jbaron@redhat.com>
LKML-Reference: <20100304033850.3819.74590.stgit@localhost6.localdomain6>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/alternative.c