Re: powerpc/perf: Fix kfree memory allocated for nest pmus

2017-12-21 Thread Michael Ellerman
On Thu, 2017-12-07 at 17:23:27 UTC, Anju T Sudhakar wrote: > imc_common_cpuhp_mem_free() is the common function for all IMC (In-memory > Collection counters) domains to unregister cpuhotplug callback and free > memory. > Since kfree of memory allocated for nest-imc (per_nest_pmu_arr) is in the >

Re: [PATCH] powerpc/perf: Fix kfree memory allocated for nest pmus

2017-12-12 Thread Madhavan Srinivasan
On Thursday 07 December 2017 10:53 PM, Anju T Sudhakar wrote: imc_common_cpuhp_mem_free() is the common function for all IMC (In-memory Collection counters) domains to unregister cpuhotplug callback and free memory. Since kfree of memory allocated for nest-imc (per_nest_pmu_arr) is in the commo

[PATCH] powerpc/perf: Fix kfree memory allocated for nest pmus

2017-12-07 Thread Anju T Sudhakar
imc_common_cpuhp_mem_free() is the common function for all IMC (In-memory Collection counters) domains to unregister cpuhotplug callback and free memory. Since kfree of memory allocated for nest-imc (per_nest_pmu_arr) is in the common code, all domains (core/nest/thread) can do the kfree in the fai