Commit 323c6a81 authored by Dietmar Eggemann's avatar Dietmar Eggemann Committed by Ionela Voinescu
Browse files

sched_tp: Avoid the use of runqueues since it's not exported



Use rq_of(cfs_rq)->cfs instead of &cpu_rq(cpu)->cfs since cpu_rq(cpu)
uses runqueues.
Signed-off-by: Dietmar Eggemann's avatarDietmar Eggemann <dietmar.eggemann@arm.com>
parent 8b0ec53c
......@@ -258,9 +258,9 @@ TRACE_EVENT_CONDITION(uclamp_util_cfs,
TP_fast_assign(
__entry->cpu = cpu;
__entry->util_avg = cfs_rq->avg.util_avg;
__entry->uclamp_avg = uclamp_rq_util_with(cpu_rq(cpu), cfs_rq->avg.util_avg, NULL);
__entry->uclamp_min = cpu_rq(cpu)->uclamp[UCLAMP_MIN].value;
__entry->uclamp_max = cpu_rq(cpu)->uclamp[UCLAMP_MAX].value;
__entry->uclamp_avg = uclamp_rq_util_with(rq_of(cfs_rq), cfs_rq->avg.util_avg, NULL);
__entry->uclamp_min = rq_of(cfs_rq)->uclamp[UCLAMP_MIN].value;
__entry->uclamp_max = rq_of(cfs_rq)->uclamp[UCLAMP_MAX].value;
),
TP_printk("cpu=%d util_avg=%lu uclamp_avg=%lu "
......
......@@ -71,7 +71,7 @@ static void sched_pelt_cfs(void *data, struct cfs_rq *cfs_rq)
if (trace_uclamp_util_cfs_enabled()) {
unsigned int cpu = sched_trace_cfs_rq_cpu(cfs_rq);
bool __maybe_unused is_root_rq = (&cpu_rq(cpu)->cfs == cfs_rq);
bool __maybe_unused is_root_rq = (&rq_of(cfs_rq)->cfs == cfs_rq);
trace_uclamp_util_cfs(is_root_rq, cpu, cfs_rq);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment