tracing: Use __this_cpu_read() in trace_buffered_event_enable()
authorXianting Tian <tian.xianting@h3c.com>
Thu, 13 Aug 2020 11:28:03 +0000 (19:28 +0800)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Tue, 22 Sep 2020 01:06:02 +0000 (21:06 -0400)
commitb427e765bdffcc18911ace199a17b09332a47d55
treebb083c4d181aade37aabdb508d434915ed1ed91e
parent5c8c206e4308ee33dea7c60b0cfcbed48a6438b4
tracing: Use __this_cpu_read() in trace_buffered_event_enable()

The code is executed with preemption disabled, so it's
safe to use __this_cpu_read().

Link: https://lkml.kernel.org/r/20200813112803.12256-1-tian.xianting@h3c.com
Signed-off-by: Xianting Tian <tian.xianting@h3c.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/trace.c