On Monday 09 Jul 2018 at 17:42:26 (+0200), Peter Zijlstra wrote: > On Mon, Jul 09, 2018 at 04:28:26PM +0100, Quentin Perret wrote: > > What about moving schedutil_freq_util() to sched.h and give it a more > > generic name (total_cpu_util() ?) with no dependencies on > > CONFIG_CPU_FREQ_GOV_SCHEDUTIL ? Also, 'energy_util' would have to be > > renamed I guess (busy_time_util ?). > > Bit big for an inline,
True, but that will be used in the wake-up path ... > and I don't think there's much point using all > this without schedutil. For that total_cpu_util() function I was suggesting, the main point would be to avoid code duplication with scale_rt_capacity(). Not sure if that matters ? Thanks, Quentin

