]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sparc64: Fix incorrect counting when using multiple perf counters
authorDave Aldridge <david.j.aldridge@oracle.com>
Tue, 29 Mar 2016 10:57:14 +0000 (03:57 -0700)
committerAllen Pais <allen.pais@oracle.com>
Sun, 22 Jan 2017 15:38:05 +0000 (21:08 +0530)
commitc9750824ff585fdb8519bdb14f432d15463b919d
treefc04234871aeb09c58de39ce82a8e9fa6bd23a0a
parent91685e972c295420be487f2dc92edb5a1c0d2ed1
sparc64: Fix incorrect counting when using multiple perf counters

Commit 165050c1 introduced a change to the way we deal with
performance counter overflow interrupts. This change had the
side effect that when a performance counter overflow was
detected it assumed all performance counters in use
had overflowed. Thus, when using multiple performance
counters the event counting was incorrect.

This commit fixes this incorrect counting behaviour.

Orabug: 23106709

Signed-off-by: Dave Aldridge <david.j.aldridge@oracle.com>
(cherry picked from commit ef4dab8459ac6dd32538dc9448caf55ab68c2231)
(cherry picked from commit 741d96c0e37d7a73e17433355bb5bf513f2053af)
Signed-off-by: Allen Pais <allen.pais@oracle.com>
arch/sparc/kernel/perf_event.c