Re: [PATCH v2 2/2] sched/cache: Drive cache task tick from execution context

From: K Prateek Nayak

Date: Thu Sep 03 2026 - 00:38:13 EST


Hello Hui,

On 9/3/2026 9:41 AM, Hui Su wrote:
> curr->sched_class->task_tick(rq, curr, 0);
>
> - if (curr->sched_class == &fair_sched_class &&
> - static_branch_unlikely(&sched_numa_balancing))
> - task_tick_numa(rq, curr);
> + if (curr->sched_class == &fair_sched_class) {
> + if (static_branch_unlikely(&sched_numa_balancing))
> + task_tick_numa(rq, curr);
> + task_tick_cache(rq, curr);
> + }

nit.

Might be worthwhile to extract the above into a task_tick(rq, curr, donor)
helper instead of duplicating in two places.

--
Thanks and Regards,
Prateek