]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 6865/1: perf: ensure pass through zero is counted on overflow
authorWill Deacon <will.deacon@arm.com>
Tue, 5 Apr 2011 13:01:24 +0000 (14:01 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 10 Apr 2011 20:13:35 +0000 (21:13 +0100)
commit021fedd9031d79dc998204d4cb89ce78d2750ecb
treeac97143a319067bb8d5929d83f34df646d703189
parentaf93c5ff16ed7a4444c49bda91294c925516d96b
ARM: 6865/1: perf: ensure pass through zero is counted on overflow

Commit 99605d53 ("ARM: perf: ensure overflows aren't missed due to IRQ
latency") changed the way that event deltas are calculated on overflow
so that we don't miss events when the new count value overtakes the
previous one.

Unfortunately, we forget to count the event that passes through zero so
we end up being off by 1. This patch adds on the correction.

Reported-by: Chris Moore <moore@free.fr>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/perf_event.c