• Frederic Weisbecker's avatar
    perf: Fix perf lock bad rate · 5efe08cf
    Frederic Weisbecker authored
    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: default avatarFrederic 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>
    5efe08cf
builtin-lock.c 22.7 KB