]> git.baikalelectronics.ru Git - kernel.git/commit
tracing: Convert stddev into u64 in tracepoint benchmark
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>
Fri, 6 Jun 2014 00:35:30 +0000 (20:35 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Fri, 6 Jun 2014 00:35:30 +0000 (20:35 -0400)
commitf1aa882400bf84766c8e1bcca8ba611a6a79a433
tree3966b0bc0dcb2d38837abdcd96d0a652354dd8b3
parent8ce1567b63ba33b993acbbc9a880a0d128faa893
tracing: Convert stddev into u64 in tracepoint benchmark

I've been told that do_div() expects an unsigned 64 bit number, and
is undefined if a signed is used. This gave a warning on the MIPS
build. I'm not sure if a signed 64 bit dividend is really an issue
or not, but the calculation this is used for is standard deviation,
and that isn't going to be negative. We can just convert it to
unsigned and be safe.

Reported-by: David Daney <ddaney.cavm@gmail.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace_benchmark.c