powerpc/ftrace: Have PPC skip updating with stop_machine()
authorSteven Rostedt <srostedt@redhat.com>
Thu, 26 Apr 2012 08:31:17 +0000 (08:31 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 3 Jul 2012 04:14:38 +0000 (14:14 +1000)
commitee456bb346e75a9b6d941224b108250e6ee5f79f
treeaa6b3c6f3ebd396d458ebcdaf3dab7809df3f06a
parentb81f18e55e9f4ea81759bcb00fea295de679bbe8
powerpc/ftrace: Have PPC skip updating with stop_machine()

PowerPC does not have the synchronization issues that x86 has with
modifying code on one CPU while another CPU is executing it.
The other CPU will either see the old or new code without any
issues, unlike x86 which may issue a GPF.

Instead of calling the heavy stop_machine, just update the code.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/ftrace.c