Re: [PATCH v12 01/13] sched/cputime: Add kcpustat_field_total helper

From: Frederic Weisbecker

Date: Thu Sep 03 2026 - 12:36:06 EST


Le Thu, Sep 03, 2026 at 12:02:28PM +0530, Shrikanth Hegde a écrit :
> Provide a new helper function which sums up a given type of cpustat
> over a specified cpumask.
>
> This allows the caller's code to be simpler and avoids duplication.
> For example, subsequent patch in the steal governor use this exact
> same pattern when calculating steal time.
>
> Suggested-by: Yury Norov <yury.norov@xxxxxxxxx>
> Reviewed-by: Yury Norov <ynorov@xxxxxxxxxx>
> Reviewed-by: Mete Durlu <meted@xxxxxxxxxxxxx>
> Signed-off-by: Shrikanth Hegde <sshegde@xxxxxxxxxxxxx>

Acked-by: Frederic Weisbecker <frederic@xxxxxxxxxx>

--
Frederic Weisbecker
SUSE Labs