arm64: ftrace: stop using kstop_machine to enable/disable tracing
authorLi Bin <huawei.libin@huawei.com>
Fri, 4 Dec 2015 03:38:39 +0000 (11:38 +0800)
committerAlex Shi <alex.shi@linaro.org>
Wed, 11 May 2016 07:56:36 +0000 (15:56 +0800)
commit2ef8b1f56c1989157c8ef929f4f89bd6a3ac7950
tree9a0c2f35b28d5b261040a21716b6fdf22c10346f
parent0348dff2c49b25c7b5702ef887f03177f4b0c0fd
arm64: ftrace: stop using kstop_machine to enable/disable tracing

For ftrace on arm64, kstop_machine which is hugely disruptive
to a running system is not needed to convert nops to ftrace calls
or back, because that to be modified instrucions, that NOP, B or BL,
are all safe instructions which called "concurrent modification
and execution of instructions", that can be executed by one
thread of execution as they are being modified by another thread
of execution without requiring explicit synchronization.

Signed-off-by: Li Bin <huawei.libin@huawei.com>
Reviewed-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
(cherry picked from commit 81a6a146e88eca5d6726569779778d61489d85aa)
Signed-off-by: Alex Shi <alex.shi@linaro.org>
arch/arm64/kernel/ftrace.c