From: Frederic Weisbecker Date: Thu, 6 May 2010 02:55:22 +0000 (+0200) Subject: perf: Fix perf lock bad rate X-Git-Tag: v2.6.35-rc1~522^2~42^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5efe08cf685f33f562566dc68b6077b6f6a4f706;p=pandora-kernel.git 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 Cc: Ingo Molnar Cc: Peter Zijlstra Cc: Arnaldo Carvalho de Melo Cc: Paul Mackerras Cc: Hitoshi Mitake --- Reading git-diff-tree failed