[PATCH 0/3] Fixes for uclamp and capacity inversion detection

From: Qais Yousef
Date: Sun Nov 27 2022 - 09:18:11 EST


From: "Qais Yousef (Google)" <qyousef@xxxxxxxxxxx>

Patch 1 addresses a smatch warning reported by Dan Carpenter.

Patch 2 fixes a couple of issues reported by Dietmar in capacity inversion
logic.

Patch 3 is an RFC patch to decouple capacity inversion detection from
performance domains which is dependent on sched_energy_enabled(). I switched to
traversing cpufreq policies instead. Rafael, Viresh please check I didn't do
something stupid here.


Thanks!

--
Qais Yousef

Qais Yousef (3):
sched/uclamp: Fix a uninitialized variable warnings
sched/fair: Fixes for capacity inversion detection
sched/fair: Traverse cpufreq policies to detect capacity inversion

drivers/cpufreq/cpufreq.c | 12 +-----------
include/linux/cpufreq.h | 26 ++++++++++++++++++++++++++
kernel/sched/fair.c | 18 +++++++++---------
3 files changed, 36 insertions(+), 20 deletions(-)

--
2.25.1