Skip to contentSkip to conversation

cpufreq: qcom-hw: Set dvfs_possible_from_any_cpu cpufreq driver flag

PATCH Applied Taniya Das 2 participants 2 messages Aug 23, 2021

Subsystems (2)
lore
Share & tools
lore

Taniya Das

author
#0 lore raw

PATCH v3 1/1 cpufreq: qcom-hw: Set dvfs_possible_from_any_cpu cpufreq driver flag

As remote cpufreq updates are supported on QCOM platforms, set dvfs_possible_from_any_cpu cpufreq driver flag.

---
[v3]
* update the dvfs_possible_from_any_cpu always from qcom_cpufreq_hw_cpu_init
[v2]
* update the dvfs_possible_from_any_cpu always.

 drivers/cpufreq/qcom-cpufreq-hw.c | 1 +
 1 file changed, 1 insertion(+)
drivers/cpufreq/qcom-cpufreq-hw.c +1 -0
index f86859b..4dd77ac 100644
@@ -348,6 +348,7 @@ static int qcom_cpufreq_hw_cpu_init(struct cpufreq_policy *policy)
 	}
 
 	policy->driver_data = data;
+	policy->dvfs_possible_from_any_cpu = true;
 
 	ret = qcom_cpufreq_hw_read_lut(cpu_dev, policy);
 	if (ret) {

--
Qualcomm INDIA, on behalf of Qualcomm Innovation Center, Inc.is a member of the Code Aurora Forum, hosted by the Linux Foundation.

maintainer Applied
#1 lore raw
Quoted 18 lines · Taniya Das

As remote cpufreq updates are supported on QCOM platforms, set dvfs_possible_from_any_cpu cpufreq driver flag.

---
[v3]
* update the dvfs_possible_from_any_cpu always from qcom_cpufreq_hw_cpu_init
[v2]
* update the dvfs_possible_from_any_cpu always.

 drivers/cpufreq/qcom-cpufreq-hw.c | 1 +
 1 file changed, 1 insertion(+)
drivers/cpufreq/qcom-cpufreq-hw.c +0 -0
index f86859b..4dd77ac 100644

drivers/cpufreq/qcom-cpufreq-hw.c static int qcom_cpufreq_hw_cpu_init(struct cpufreq_policy *policy) · line 354

Quoted 7 lines
drivers/cpufreq/qcom-cpufreq-hw.c +1 -0
@@ -348,6 +348,7 @@ static int qcom_cpufreq_hw_cpu_init(struct cpufreq_policy *policy)
 	}
 
 	policy->driver_data = data;
+	policy->dvfs_possible_from_any_cpu = true;
 
 	ret = qcom_cpufreq_hw_read_lut(cpu_dev, policy);
 	if (ret) {

Applied. Thanks.

Signature · 1 line
viresh