summaryrefslogtreecommitdiffstats
path: root/.gitignore
diff options
context:
space:
mode:
authorPan Xinhui2015-07-10 08:36:20 +0200
committerRafael J. Wysocki2015-07-16 23:51:26 +0200
commit8cfcfd39000d54188e0df1e0fafe63f53897b62a (patch)
tree7c7ad200cad211909b8d2b3fa026c1a5e8d449c5 /.gitignore
parentcpufreq: Properly handle errors from cpufreq_init_policy() (diff)
downloadkernel-qcow2-linux-8cfcfd39000d54188e0df1e0fafe63f53897b62a.tar.gz
kernel-qcow2-linux-8cfcfd39000d54188e0df1e0fafe63f53897b62a.tar.xz
kernel-qcow2-linux-8cfcfd39000d54188e0df1e0fafe63f53897b62a.zip
acpi-cpufreq: Fix an ACPI perf unregister issue
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 acpi_processor_register_performance() call, it may also fail thanks to the internal check of pr->performace. So add a new struct acpi_cpufreq_data field, acpi_perf_cpu, to fix this issue. Signed-off-by: Pan Xinhui <xinhuix.pan@intel.com> Acked-by: Viresh Kumar <viresh.kumar@linaro.org> [ rjw: Changelog ] Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions