mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-15 19:56:03 +00:00
ring-buffer: Pass timestamp by value and not by reference
The original code for the ring buffer had locations that modified the timestamp and that change was used by the callers. Now, the timestamp is not reused by the callers and there is no reason to pass it by reference. By changing the call to pass by value, lets gcc optimize the code a bit more where it can store the timestamp in a register and not worry about updating the reference. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
This commit is contained in:
parent
747e94ae3d
commit
e8bc43e84f
1 changed files with 10 additions and 10 deletions
Loading…
Add table
Add a link
Reference in a new issue