mirror of
https://github.com/torvalds/linux.git
synced 2026-08-01 20:22:08 +02:00
cpufreq: qcom-hw: Fix panic when offlining core under lmh throttle
The qcom_lmh_dcvs_notify() function requires the CPU OPP tables, so cancel the lmh work before removing them. Change-Id: I3d42362baff1632da6d8a9cfc5ba9b724da240d9 Signed-off-by: Mike Tipton <mdtipton@codeaurora.org>
This commit is contained in:
parent
d41dcee41c
commit
e0f4f032b5
|
|
@ -1,6 +1,6 @@
|
|||
// SPDX-License-Identifier: GPL-2.0
|
||||
/*
|
||||
* Copyright (c) 2018, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2018, 2021, The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
|
||||
#include <linux/bitfield.h>
|
||||
|
|
@ -597,9 +597,9 @@ static int qcom_cpufreq_hw_cpu_exit(struct cpufreq_policy *policy)
|
|||
struct resource *res = data->res;
|
||||
void __iomem *base = data->base;
|
||||
|
||||
qcom_cpufreq_hw_lmh_exit(data);
|
||||
dev_pm_opp_remove_all_dynamic(cpu_dev);
|
||||
dev_pm_opp_of_cpumask_remove_table(policy->related_cpus);
|
||||
qcom_cpufreq_hw_lmh_exit(data);
|
||||
kfree(policy->freq_table);
|
||||
kfree(data);
|
||||
iounmap(base);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user