Re: [RFC PATCH v4 09/12] sched/fair: Introduce an energy estimation helper function

From: Peter Zijlstra
Date: Mon Jul 09 2018 - 11:43:03 EST


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, and I don't think there's much point using all
this without schedutil. You already rely on it anyhow.