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

Anshuman Khandual khandual at linux.vnet.ibm.com
Fri Jun 28 15:10:14 EST 2013


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 <michael at ellerman.id.au>

Reviewed-by: Anshuman Khandual <khandual at linux.vnet.ibm.com>



More information about the Linuxppc-dev mailing list