]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sparc64: Stop performance counter before updating
authorDave Aldridge <david.j.aldridge@oracle.com>
Fri, 3 Feb 2017 10:24:54 +0000 (02:24 -0800)
committerAllen Pais <allen.pais@oracle.com>
Wed, 17 May 2017 07:12:50 +0000 (12:42 +0530)
commit0114bb09eb8da9f8cc6259d4fbfeaf43e3252e48
tree060b076f0eb86193334161ac39bbf34abbd327c4
parent061243ff4b723adac4354d36d1ed0624b584c716
sparc64: Stop performance counter before updating

This commit takes the fix as implemented in commit
b36dd4d8040c and applies it to M8 devices. Original commit
message:

In order to reliably clear the PCRx.ov bit when updating a
performance counter value, we need to stop it counting first.
If we do not do this, then we can miss performance counter
overflow events.

Orabug: 25441707

Signed-off-by: Dave Aldridge <david.j.aldridge@oracle.com>
Reviewed-by: Shannon Nelson <shannon.nelson@oracle.com>
Signed-off-by: Allen Pais <allen.pais@oracle.com>
arch/sparc/kernel/perf_event.c