From: Steven Rostedt Date: Thu, 7 May 2009 18:20:28 +0000 (-0400) Subject: ring-buffer: only periodically call cond_resched to ring-buffer-benchmark X-Git-Tag: v2.6.31-rc1~401^2~58 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0574ea421b90e0e45a72c447dd3c2c79ffd8c153;p=pandora-kernel.git 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 --- Reading git-diff-tree failed