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 delta by value and not by reference
The delta between events is passed to the timestamp code by reference and the timestamp code will reset the value. But it can be reset from the caller. No need to pass it in by reference. By changing the call to pass by value, lets gcc optimize the code a bit more where it can store the delta in a register and not worry about updating the reference. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
This commit is contained in:
parent
e8bc43e84f
commit
f25106aeab
1 changed files with 8 additions and 8 deletions
Loading…
Add table
Add a link
Reference in a new issue