diff options
author | Steven Rostedt <srostedt@redhat.com> | 2009-05-07 14:20:28 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2009-05-07 14:20:28 -0400 |
commit | 0574ea421b90e0e45a72c447dd3c2c79ffd8c153 (patch) | |
tree | ec19f007794a8593f1c75f3f2d05c2471346298e /net/lapb/lapb_in.c | |
parent | 65b77242043f74bca6a0d733c0e48ef03a8c9893 (diff) |
ring-buffer: only periodically call cond_resched to ring-buffer-benchmark
Calling cond_resched at every iteration of the loop adds a bit of
overhead to the benchmark.
This patch does two things.
1) only calls cond-resched when CONFIG_PREEMPT is not enabled
2) only calls cond-resched after so many traces has been performed.
[ Impact: less overhead to the ring-buffer-benchmark ]
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions