Re: [PATCH v4 3/3] arm64: implement CPPC FFH support using AMUs

From: Catalin Marinas
Date: Thu Nov 12 2020 - 13:00:55 EST


On Fri, Nov 06, 2020 at 12:53:34PM +0000, Ionela Voinescu wrote:
> +static inline
> +int counters_read_on_cpu(int cpu, smp_call_func_t func, u64 *val)
> +{
> + if (!cpu_has_amu_feat(cpu))
> + return -EOPNOTSUPP;
> +
> + smp_call_function_single(cpu, func, val, 1);
> +
> + return 0;
> +}

I got lost in the cpufreq call chains. Can this function ever be called
with interrupts disabled?

--
Catalin