diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2011-11-21 19:58:59 (GMT) |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2011-12-21 10:01:09 (GMT) |
commit | 365a4038486b57bb2bd516706a80f82f250f5306 (patch) | |
tree | e1c435230121dd794e706509e3140584ecfb0ac8 /lib/sha1.c | |
parent | 35edc2a5095efb189e60dc32bbb9d2663aec6d24 (diff) | |
download | linux-365a4038486b57bb2bd516706a80f82f250f5306.tar.xz |
perf: Fix mmap_page::offset computation
There's multiple reason the counter might be unavailable, change the
condition to !->index since perf_event_index() should return 0 for all
those cases.
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/n/tip-1ixr3olci40w8rgv2evv2ldh@git.kernel.org
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'lib/sha1.c')
0 files changed, 0 insertions, 0 deletions