aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/kfifo.c
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2010-10-20 10:58:02 -0400
committerSteven Rostedt <rostedt@goodmis.org>2010-10-20 10:58:02 -0400
commite8bc43e84fada397af1b677b07dbf26e6ac78fcc (patch)
tree60f6fe1acbd15fcd9fdc051660479f300c164ab6 /kernel/kfifo.c
parent747e94ae3d1b4c9bf5380e569f614eb9040b79e7 (diff)
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>
Diffstat (limited to 'kernel/kfifo.c')
0 files changed, 0 insertions, 0 deletions