diff options
author | Michael Ellerman <michael@ellerman.id.au> | 2013-06-28 18:15:14 +1000 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2013-07-01 11:50:03 +1000 |
commit | 4ea355b5368bde0574c12430df53334c4be3bdcf (patch) | |
tree | a92aee5cfb16a4d48a6845cea84b55df7460fb63 /arch/powerpc/include/asm/processor.h | |
parent | 0a48843d6c5114cfa4a9540ee4d6af87628cec01 (diff) |
powerpc/perf: Don't enable if we have zero events
In power_pmu_enable() we still enable the PMU even if we have zero
events. This should have no effect but doesn't make much sense. Instead
just return after telling the hypervisor that we are not using the PMCs.
Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
CC: <stable@vger.kernel.org> [v3.10]
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/include/asm/processor.h')
0 files changed, 0 insertions, 0 deletions