Skip to content
Commit 18d14ebd authored by Qiujun Huang's avatar Qiujun Huang Committed by Steven Rostedt (VMware)
Browse files

tracing: Remove get/put_cpu() from function_trace_init

Since commit b6f11df2 ("trace: Call tracing_reset_online_cpus before
tracer->init()"), get/put_cpu() are not needed anymore.
We can use raw_smp_processor_id() instead.

Link: https://lkml.kernel.org/r/20201230140521.31920-1-hqjagain@gmail.com



Signed-off-by: default avatarQiujun Huang <hqjagain@gmail.com>
Signed-off-by: default avatarSteven Rostedt (VMware) <rostedt@goodmis.org>
parent b3ca59f6
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment