Re: [PATCH 7/8] cpufreq: Frequency invariant scheduler load-tracking support
From: Peter Zijlstra
Date: Tue Mar 15 2016 - 17:34:39 EST
On Sun, Mar 13, 2016 at 10:22:11PM -0700, Michael Turquette wrote:
> +static DEFINE_PER_CPU(unsigned long, freq_scale) = SCHED_CAPACITY_SCALE;
> +
> +unsigned long cpufreq_scale_freq_capacity(struct sched_domain *sd, int cpu)
> +{
> + return per_cpu(freq_scale, cpu);
> +}
These should be in a header so that we can avoid having to do a function
call.