Re: [PATCH v3 3/5] cpufreq: Generalize of_perf_domain_get_sharing_cpumask phandle format

From: Viresh Kumar
Date: Wed Nov 02 2022 - 01:37:57 EST


On 24-10-22, 13:39, Hector Martin wrote:
> 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: Hector Martin <marcan@xxxxxxxxx>
> ---
> drivers/cpufreq/mediatek-cpufreq-hw.c | 14 +++++++++-----
> include/linux/cpufreq.h | 28 +++++++++++++++------------
> 2 files changed, 25 insertions(+), 17 deletions(-)

Applied. Thanks.

--
viresh