]> git.baikalelectronics.ru Git - kernel.git/commitdiff
cpufreq: Fix parameter in parse_perf_domain()
authorHector.Yuan <hector.yuan@mediatek.com>
Mon, 4 Oct 2021 14:42:33 +0000 (22:42 +0800)
committerViresh Kumar <viresh.kumar@linaro.org>
Tue, 2 Nov 2021 03:51:43 +0000 (09:21 +0530)
Pass cpu to parse_perf_domain() instead of pcpu.

Fixes: d89a83676bc5 ("cpufreq: Add of_perf_domain_get_sharing_cpumask")
Signed-off-by: Hector.Yuan <hector.yuan@mediatek.com>
[ Viresh: Massaged changelog ]
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
include/linux/cpufreq.h

index ff88bb3e44fca1ba7bb58137ca9aea1971a62c9b..66a1f495f01a67ccc304a4d668e151a39205a2a8 100644 (file)
@@ -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;