Skip to content
Commit d182dc6d authored by Hector Martin's avatar Hector Martin Committed by Viresh Kumar
Browse files

cpufreq: Generalize of_perf_domain_get_sharing_cpumask phandle format



of_perf_domain_get_sharing_cpumask currently assumes a 1-argument
phandle format, and directly returns the argument. Generalize this to
return the full of_phandle_args, so it can be used by drivers which use
other phandle styles (e.g. separate nodes). This also requires changing
the CPU sharing match to compare the full args structure.

Also, make sure to of_node_put(args.np) (the original code was leaking a
reference).

Signed-off-by: default avatarHector Martin <marcan@marcan.st>
Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
parent 30a0b95b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment