Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 55679f64 authored by Quentin Perret's avatar Quentin Perret
Browse files

ANDROID: sched: Make the cpu_util* accessors available without sugov



In preparation for the introduction of the boost hold feature in
SchedTune, make the cpu_util_* signals available even without sugov,
hence making the stune integration a lot easier without breaking other
platforms

Change-Id: I77c14b6fd470a41ffb3ac510b76395ebc116ddfd
Signed-off-by: default avatarQuentin Perret <quentin.perret@arm.com>
parent 6dfaed98
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -2262,7 +2262,14 @@ static inline unsigned long schedutil_energy_util(int cpu, unsigned long cfs)

	return schedutil_freq_util(cpu, cfs, max, ENERGY_UTIL);
}
#else /* CONFIG_CPU_FREQ_GOV_SCHEDUTIL */
static inline unsigned long schedutil_energy_util(int cpu, unsigned long cfs)
{
	return cfs;
}
#endif

#ifdef CONFIG_SMP
static inline unsigned long cpu_bw_dl(struct rq *rq)
{
	return (rq->dl.running_bw * SCHED_CAPACITY_SCALE) >> BW_SHIFT;
@@ -2289,11 +2296,6 @@ static inline unsigned long cpu_util_rt(struct rq *rq)
{
	return READ_ONCE(rq->avg_rt.util_avg);
}
#else /* CONFIG_CPU_FREQ_GOV_SCHEDUTIL */
static inline unsigned long schedutil_energy_util(int cpu, unsigned long cfs)
{
	return cfs;
}
#endif

#ifdef HAVE_SCHED_AVG_IRQ