Skip to content

Commit

Permalink
cpufreq: Fix parameter in parse_perf_domain()
Browse files Browse the repository at this point in the history
Pass cpu to parse_perf_domain() instead of pcpu.

Fixes: 8486a32 ("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>
  • Loading branch information
Hector.Yuan authored and Viresh Kumar committed Nov 2, 2021
1 parent c2ace21 commit 4a08e32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/cpufreq.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 4a08e32

Please sign in to comment.