linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1] cpufreq: Fix parameter in parse_perf_domain
@ 2021-10-04 14:42 Hector Yuan
  2021-10-04 14:42 ` [PATCH v1 1/1] cpufreq:Fix " Hector Yuan
  0 siblings, 1 reply; 3+ messages in thread
From: Hector Yuan @ 2021-10-04 14:42 UTC (permalink / raw)
  To: linux-mediatek, linux-arm-kernel, linux-pm, Rafael J. Wysocki,
	Viresh Kumar
  Cc: linux-kernel, wsd_upstream, hector.yuan

Should pass per-cpu id to map perf_domain for related_cpus
rather than map policy_cpu several times.


Hector.Yuan (1):
  cpufreq:Fix parameter in parse_perf_domain

 include/linux/cpufreq.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


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

* [PATCH v1 1/1] cpufreq:Fix parameter in parse_perf_domain
  2021-10-04 14:42 [PATCH v1] cpufreq: Fix parameter in parse_perf_domain Hector Yuan
@ 2021-10-04 14:42 ` Hector Yuan
  2021-10-05  4:21   ` Viresh Kumar
  0 siblings, 1 reply; 3+ messages in thread
From: Hector Yuan @ 2021-10-04 14:42 UTC (permalink / raw)
  To: linux-mediatek, linux-arm-kernel, linux-pm, Rafael J. Wysocki,
	Viresh Kumar
  Cc: linux-kernel, wsd_upstream, hector.yuan

From: "Hector.Yuan" <hector.yuan@mediatek.com>

Should pass per-cpu id to map perf_domain for related_cpus
rather than map policy_cpu several times.

Signed-off-by: Hector.Yuan <hector.yuan@mediatek.com>
---
 include/linux/cpufreq.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h
index ff88bb3..66a1f49 100644
--- a/include/linux/cpufreq.h
+++ b/include/linux/cpufreq.h
@@ -1041,7 +1041,7 @@ static inline int of_perf_domain_get_sharing_cpumask(int pcpu, const char *list_
 		if (cpu == pcpu)
 			continue;
 
-		ret = parse_perf_domain(pcpu, list_name, cell_name);
+		ret = parse_perf_domain(cpu, list_name, cell_name);
 		if (ret < 0)
 			continue;
 
-- 
1.7.9.5


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

* Re: [PATCH v1 1/1] cpufreq:Fix parameter in parse_perf_domain
  2021-10-04 14:42 ` [PATCH v1 1/1] cpufreq:Fix " Hector Yuan
@ 2021-10-05  4:21   ` Viresh Kumar
  0 siblings, 0 replies; 3+ messages in thread
From: Viresh Kumar @ 2021-10-05  4:21 UTC (permalink / raw)
  To: Hector Yuan
  Cc: linux-mediatek, linux-arm-kernel, linux-pm, Rafael J. Wysocki,
	linux-kernel, wsd_upstream

On 04-10-21, 22:42, Hector Yuan wrote:
> From: "Hector.Yuan" <hector.yuan@mediatek.com>
> 
> Should pass per-cpu id to map perf_domain for related_cpus
> rather than map policy_cpu several times.
> 
> Signed-off-by: Hector.Yuan <hector.yuan@mediatek.com>
> ---
>  include/linux/cpufreq.h |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h
> index ff88bb3..66a1f49 100644
> --- a/include/linux/cpufreq.h
> +++ b/include/linux/cpufreq.h
> @@ -1041,7 +1041,7 @@ static inline int of_perf_domain_get_sharing_cpumask(int pcpu, const char *list_
>  		if (cpu == pcpu)
>  			continue;
>  
> -		ret = parse_perf_domain(pcpu, list_name, cell_name);
> +		ret = parse_perf_domain(cpu, list_name, cell_name);
>  		if (ret < 0)
>  			continue;

Applied. Thanks.

-- 
viresh

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

end of thread, other threads:[~2021-10-05  4:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-04 14:42 [PATCH v1] cpufreq: Fix parameter in parse_perf_domain Hector Yuan
2021-10-04 14:42 ` [PATCH v1 1/1] cpufreq:Fix " Hector Yuan
2021-10-05  4:21   ` 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).