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.