]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ftrace: Use this_cpu_ptr() instead of per_cpu_ptr(smp_processor_id())
authorLi Chen <chenl311@chinatelecom.cn>
Mon, 19 Aug 2024 06:01:53 +0000 (14:01 +0800)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Tue, 8 Oct 2024 19:24:22 +0000 (15:24 -0400)
commite32540b1e4b37fd720b59f8a504d7592fc3483bf
tree2d05424f767c53e12ce36a076267a9f331fee2fa
parent8cf0b93919e13d1e8d4466eb4080a4c4d9d66d7b
ftrace: Use this_cpu_ptr() instead of per_cpu_ptr(smp_processor_id())

Use this_cpu_ptr() instead of open coding the equivalent in various
ftrace functions.

Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Link: https://lore.kernel.org/87y14t6ofi.wl-me@linux.beauty
Signed-off-by: Li Chen <chenl311@chinatelecom.cn>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
kernel/trace/trace_functions.c