Skip to content
Commit 32322b34 authored by Dietmar Eggemann's avatar Dietmar Eggemann Committed by Douglas Raillard
Browse files

lisa._assets.kmodules.lisa: Don't rely on rq->cpu_capacity_orig anymore



The kernel commit 7bc263840bc3 ("sched/topology: Consolidate and clean
up access to a CPU's max compute") removed rq->cpu_capacity_orig so we
can't use it anymore to retrieve the original CPU capacity nor for
setting the FREQ_INVARIANCE kernel feature in LISA.

Split the micro-architectural part of the Invariance from the
FREQ_INVARIANCE into its own kernel feature UARCH_INVARIANCE.

Use a copy of the Arm64 (+ Arm, Riscv) kernel implementation (per-cpu
cpu_scale variable in drivers/base/arch_topology.c) also in the lisa
trace module code.

Tested on Juno-r0 with 'lisa-load-kmod --conf target_conf.yml' by
evaluating the 'capacity_orig' field of the 'lisa__sched_cpu_capacity'
trace event.

Signed-off-by: Dietmar Eggemann's avatarDietmar Eggemann <dietmar.eggemann@arm.com>
parent b87609b1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment