LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH v3] cpufreq: qcom-hw: Set dvfs_possible_from_any_cpu cpufreq driver flag
@ 2021-08-23 10:15 Taniya Das
  2021-08-23 10:17 ` Viresh Kumar
  0 siblings, 1 reply; 2+ messages in thread
From: Taniya Das @ 2021-08-23 10:15 UTC (permalink / raw)
  To: Rafael J . Wysocki, Viresh Kumar, linux-pm
  Cc: linux-arm-msm, linux-kernel, Douglas Anderson, Rajendra Nayak,
	Stephen Boyd, Taniya Das

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

Signed-off-by: Taniya Das <tdas@codeaurora.org>
---
[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(+)

diff --git a/drivers/cpufreq/qcom-cpufreq-hw.c b/drivers/cpufreq/qcom-cpufreq-hw.c
index f86859b..4dd77ac 100644
--- a/drivers/cpufreq/qcom-cpufreq-hw.c
+++ b/drivers/cpufreq/qcom-cpufreq-hw.c
@@ -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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH v3] cpufreq: qcom-hw: Set dvfs_possible_from_any_cpu cpufreq driver flag
  2021-08-23 10:15 [PATCH v3] cpufreq: qcom-hw: Set dvfs_possible_from_any_cpu cpufreq driver flag Taniya Das
@ 2021-08-23 10:17 ` Viresh Kumar
  0 siblings, 0 replies; 2+ messages in thread
From: Viresh Kumar @ 2021-08-23 10:17 UTC (permalink / raw)
  To: Taniya Das
  Cc: Rafael J . Wysocki, linux-pm, linux-arm-msm, linux-kernel,
	Douglas Anderson, Rajendra Nayak, Stephen Boyd

On 23-08-21, 15:45, Taniya Das wrote:
> As remote cpufreq updates are supported on QCOM platforms, set
> dvfs_possible_from_any_cpu cpufreq driver flag.
> 
> Signed-off-by: Taniya Das <tdas@codeaurora.org>
> ---
> [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(+)
> 
> diff --git a/drivers/cpufreq/qcom-cpufreq-hw.c b/drivers/cpufreq/qcom-cpufreq-hw.c
> index f86859b..4dd77ac 100644
> --- a/drivers/cpufreq/qcom-cpufreq-hw.c
> +++ b/drivers/cpufreq/qcom-cpufreq-hw.c
> @@ -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.

-- 
viresh

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-08-23 10:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-23 10:15 [PATCH v3] cpufreq: qcom-hw: Set dvfs_possible_from_any_cpu cpufreq driver flag Taniya Das
2021-08-23 10:17 ` Viresh Kumar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).