]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: perf: Only reset PMxEVCNTCR registers on reset
authorStephen Boyd <sboyd@codeaurora.org>
Sat, 28 Feb 2015 00:11:34 +0000 (00:11 +0000)
committerWill Deacon <will.deacon@arm.com>
Tue, 17 Mar 2015 18:34:01 +0000 (18:34 +0000)
commitd46f8887b6549e2dd0a5cafb38422beaf64a8cf3
tree85a117432aada0825a98f07bc5a2c99fa14bd415
parent9ffbf0acd96c91f6e4beecac7e154bde4d9ca499
ARM: perf: Only reset PMxEVCNTCR registers on reset

The Krait specific PMxEVCNTCR register is unpredictable upon
reset. Currently we clear the register before we setup an event,
but we don't need to do that. Instead, we can iterate through all
the events and clear them once when we reset the PMU, saving a
write in the event setup path.

Cc: Neil Leeder <nleeder@codeaurora.org>
Cc: Ashwin Chaugule <ashwinc@codeaurora.org>
Cc: Sheetal Sahasrabudhe <sheetals@codeaurora.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm/kernel/perf_event_v7.c