Re: [PATCH 5/8] powerpc/perf: Don't enable if we have zero events

2013-06-27 Thread Anshuman Khandual
On 06/24/2013 04:58 PM, Michael Ellerman wrote: 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

[PATCH 5/8] powerpc/perf: Don't enable if we have zero events

2013-06-24 Thread Michael Ellerman
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 mich...@ellerman.id.au ---