git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
65b7724
)
ring-buffer: only periodically call cond_resched to ring-buffer-benchmark
author
Steven Rostedt
<srostedt@redhat.com>
Thu, 7 May 2009 18:20:28 +0000
(14:20 -0400)
committer
Steven Rostedt
<rostedt@goodmis.org>
Thu, 7 May 2009 18:20:28 +0000
(14:20 -0400)
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>
No differences found