diff options
author | Frederic Weisbecker <fweisbec@gmail.com> | 2010-05-07 02:33:42 +0200 |
---|---|---|
committer | Frederic Weisbecker <fweisbec@gmail.com> | 2010-05-09 13:45:30 +0200 |
commit | 90c0e5fc7b73d2575c7367e1da70ff9521718e5e (patch) | |
tree | 555df001b47f27ae0a4339725e9ba06175e94ff1 /kernel | |
parent | perf: Fix perf lock bad rate (diff) | |
download | linux-90c0e5fc7b73d2575c7367e1da70ff9521718e5e.tar.xz linux-90c0e5fc7b73d2575c7367e1da70ff9521718e5e.zip |
perf lock: Always check min AND max wait time
When a lock is acquired after beeing contended, we update the
wait time statistics for the given lock.
But if the min wait time is updated, we don't check the max wait
time. This is wrong because the first time we update the wait time,
we want to update both min and max wait time.
Before:
Name acquired contended total wait (ns) max wait (ns) min wait (ns)
key 8 1 21656 0 21656
After:
Name acquired contended total wait (ns) max wait (ns) min wait (ns)
key 8 1 21656 21656 21656
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>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions