]> git.baikalelectronics.ru Git - kernel.git/commit
ring-buffer: remove complex calculations in ring-buffer-test
authorSteven Rostedt <srostedt@redhat.com>
Thu, 7 May 2009 15:13:42 +0000 (11:13 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Thu, 7 May 2009 15:16:18 +0000 (11:16 -0400)
commit31360a7da2392d6baf103b4c62b3f6255abc201b
tree4c57a374639127ebccd6f4fca0feb02cde21e702
parent350c4087341338e84c201df8a278273d6606ae76
ring-buffer: remove complex calculations in ring-buffer-test

Ingo Molnar thought that the code to calculate the time in cond_resched
is a bit too ugly and is not needed. This patch removes it and replaces
it with a simple call to cond_resched. I kept the comment that explains
the reason for the cond_resched.

[ Impact: remove ugly code ]

Reported-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/ring_buffer_benchmark.c