summaryrefslogtreecommitdiff
path: root/mm/util.c
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2010-10-08 17:51:48 (GMT)
committerSteven Rostedt <rostedt@goodmis.org>2010-10-19 17:22:36 (GMT)
commit747e94ae3d1b4c9bf5380e569f614eb9040b79e7 (patch)
tree29404444fa5106e6d3361fc6c85b4463777ec3a3 /mm/util.c
parent51ea8a88aae425915b458bfe295f1f10a3d52781 (diff)
downloadlinux-747e94ae3d1b4c9bf5380e569f614eb9040b79e7.tar.xz
ring-buffer: Make write slow path out of line
Gcc inlines the slow path of the ring buffer write which can hurt performance. This patch simply forces the slow path function rb_move_tail() to always be a function. The ring_buffer_benchmark module with reader_disabled=1 shows that this patch changes the time to record an event from 135 ns to 132 ns. (3 ns or 2.22% improvement) Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'mm/util.c')
0 files changed, 0 insertions, 0 deletions