]> git.baikalelectronics.ru Git - kernel.git/commit
perf: Fix perf lock bad rate
authorFrederic Weisbecker <fweisbec@gmail.com>
Thu, 6 May 2010 02:55:22 +0000 (04:55 +0200)
committerFrederic Weisbecker <fweisbec@gmail.com>
Sun, 9 May 2010 11:45:29 +0000 (13:45 +0200)
commitdb3d9a113c38908539d94e5203ebe0e6a38aa51f
treeae792d0ba092caed622825a39fec84eb6c67174c
parentb127da089353ecdba2dd754df9556c5c12b48057
perf: Fix perf lock bad rate

Fix the cast made to get the bad rate. It is made in the result
instead of the operands. We need the operands to be cast in double,
otherwise the result will always be zero.

Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Hitoshi Mitake <mitake@dcl.info.waseda.ac.jp>
tools/perf/builtin-lock.c