diff options
author | Joel Fernandes (Google) <joel@joelfernandes.org> | 2018-07-31 00:24:21 +0200 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2018-07-31 01:06:54 +0200 |
commit | 01f38497c6f6525f57eb445887b9ed1867dbd05c (patch) | |
tree | e84efb5bb1a94cc08fd93778d042d38625c21da4 /kernel/tracepoint.c | |
parent | selftests/ftrace: Fix kprobe string testcase to not probe notrace function (diff) | |
download | linux-01f38497c6f6525f57eb445887b9ed1867dbd05c.tar.xz linux-01f38497c6f6525f57eb445887b9ed1867dbd05c.zip |
lockdep: Use this_cpu_ptr instead of get_cpu_var stats
get_cpu_var disables preemption which has the potential to call into the
preemption disable trace points causing some complications. There's also
no need to disable preemption in uses of get_lock_stats anyway since
preempt is already disabled. So lets simplify the code.
Link: http://lkml.kernel.org/r/20180730222423.196630-2-joel@joelfernandes.org
Suggested-by: Peter Zijlstra <peterz@infradead.org>
Acked-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Joel Fernandes (Google) <joel@joelfernandes.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'kernel/tracepoint.c')
0 files changed, 0 insertions, 0 deletions