]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sparc64: Fix for perf event counts sometimes reported as negative numbers
authorDave Aldridge <david.j.aldridge@oracle.com>
Thu, 21 Jan 2016 14:17:11 +0000 (06:17 -0800)
committerAllen Pais <allen.pais@oracle.com>
Thu, 4 Feb 2016 13:11:05 +0000 (18:41 +0530)
commit83b6f6d8dade657b63e035b7ed471cfa6928b2d4
treeade06e11f183c2a2777b22da4f56f4138fb667c5
parent032b3948a4f42c6765a658d9f76895bb581e9b86
sparc64: Fix for perf event counts sometimes reported as negative numbers

Use an unsigned number to prevent sign extension in the calculation
to work out the difference between the previous and the current
count obtained from the perfomance instrumentation counters.

Orabug: 22607658

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