diff options
author | Will Deacon <will.deacon@arm.com> | 2011-07-01 14:38:12 +0100 |
---|---|---|
committer | Andi Kleen <ak@linux.intel.com> | 2011-08-01 13:55:04 -0700 |
commit | 64779cb190a6ba7a03b658cd0584cef74fb9c208 (patch) | |
tree | 624050de234886de90dbfe91dab403819fca0ac9 /fs/jbd2/commit.c | |
parent | 225686544fb9af569ea70a46e11fe130c6da5bd2 (diff) |
ARM: 6989/1: perf: do not start the PMU when no events are
[ upstream commit f4f38430c94c38187db73a2cf3892cc8b12a2713 ]
present
armpmu_enable can be called in situations where no events are present
(for example, from the event rotation tick after a profiled task has
exited). In this case, we currently start the PMU anyway which may
leave it active inevitably without any events being monitored.
This patch adds a simple check to the enabling code so that we avoid
starting the PMU when no events are present.
Cc: <stable@kernel.org>
Reported-by: Ashwin Chaugle <ashwinc@codeaurora.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions