tracing: Remove get/put_cpu() from function_trace_init
authorQiujun Huang <hqjagain@gmail.com>
Wed, 30 Dec 2020 14:05:21 +0000 (22:05 +0800)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Tue, 2 Feb 2021 22:02:05 +0000 (17:02 -0500)
commit18d14ebdbd07abdd6466f252d431ce6f0e70e38a
treec8c85082b088848766c7fa53d0e890facddb2cc9
parentb3ca59f6fe79eb83a360e885f49730d07d31bf79
tracing: Remove get/put_cpu() from function_trace_init

Since commit b6f11df26fdc ("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: Qiujun Huang <hqjagain@gmail.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/trace_functions.c