Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ring-buffer: only periodically call cond_resched to ring-buffer-bench…
…mark 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>
- Loading branch information