]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerWill Deacon <will.deacon@arm.com>
Fri, 4 Dec 2015 12:03:25 +0000 (12:03 +0000)
commit02d5a4a12ed089a7afa6ed1a9c479145b3d37ab4
treed5c26b2e23bae83c1e7fa8ae5475c2d46ca069f8
parent6bcead4f7bdf0a358fdea0814972cb98f43a64f8
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>
arch/arm64/kernel/ftrace.c