diff options
author | Michael Ellerman <[email protected]> | 2013-06-28 18:15:14 +1000 |
---|---|---|
committer | Benjamin Herrenschmidt <[email protected]> | 2013-07-01 11:50:03 +1000 |
commit | 4ea355b5368bde0574c12430df53334c4be3bdcf (patch) | |
tree | a92aee5cfb16a4d48a6845cea84b55df7460fb63 /net/unix/sysctl_net_unix.c | |
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 <[email protected]>
CC: <[email protected]> [v3.10]
Signed-off-by: Benjamin Herrenschmidt <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions