mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
cpufreq: qoriq: Fix cooling device registration issue during suspend
Cooling device is registered by ready callback. It's also invoked while system resuming from sleep (Enabling non-boot cpus). Thus cooling device may be multiple registered. Matchable unregistration is added to exit callback to fix this issue. Signed-off-by: Jia Hongtao <hongtao.jia@nxp.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
parent
495c716f17
commit
394cb8316b
1 changed files with 1 additions and 0 deletions
|
@ -305,6 +305,7 @@ static int qoriq_cpufreq_cpu_exit(struct cpufreq_policy *policy)
|
||||||
{
|
{
|
||||||
struct cpu_data *data = policy->driver_data;
|
struct cpu_data *data = policy->driver_data;
|
||||||
|
|
||||||
|
cpufreq_cooling_unregister(data->cdev);
|
||||||
kfree(data->pclk);
|
kfree(data->pclk);
|
||||||
kfree(data->table);
|
kfree(data->table);
|
||||||
kfree(data);
|
kfree(data);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue