Re: [PATCH V2] acpi-cpufreq: Fix an acpi perf unregister issue

2015-07-15 Thread Rafael J. Wysocki
On Monday, July 13, 2015 07:58:59 AM Viresh Kumar wrote: > On 10-07-15, 14:36, Pan Xinhui wrote: > > > > As policy->cpu may not be same in acpi_cpufreq_cpu_init and > > acpi_cpufreq_cpu_exit. There is a risk that we use different *cpu* to > > un/register acpi performance. So acpi_processor_unregis

Re: [PATCH V2] acpi-cpufreq: Fix an acpi perf unregister issue

2015-07-12 Thread Viresh Kumar
On 10-07-15, 14:36, Pan Xinhui wrote: > > As policy->cpu may not be same in acpi_cpufreq_cpu_init and > acpi_cpufreq_cpu_exit. There is a risk that we use different *cpu* to > un/register acpi performance. So acpi_processor_unregister_performance > may not be able to do the cleanup work. That caus

[PATCH V2] acpi-cpufreq: Fix an acpi perf unregister issue

2015-07-09 Thread Pan Xinhui
As policy->cpu may not be same in acpi_cpufreq_cpu_init and acpi_cpufreq_cpu_exit. There is a risk that we use different *cpu* to un/register acpi performance. So acpi_processor_unregister_performance may not be able to do the cleanup work. That causes a memory leak. And if there will be another a