Skip to content
Commit d8eeb2d3 authored by Robert Richter's avatar Robert Richter Committed by Steven Rostedt
Browse files

ring-buffer: consolidate interface of rb_buffer_peek()



rb_buffer_peek() operates with struct ring_buffer_per_cpu *cpu_buffer
only. Thus, instead of passing variables buffer and cpu it is better
to use cpu_buffer directly. This also reduces the risk of races since
cpu_buffer is not calculated twice.

Signed-off-by: default avatarRobert Richter <robert.richter@amd.com>
LKML-Reference: <1249045084-3028-1-git-send-email-robert.richter@amd.com>
Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
parent d28daf92
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