# Re: \[PATCH v10 01/12\] sched/cputime: Add kcpustat\_field\_total helper

- From: Mete Durlu \<meted@linux.ibm.com\>
- Date: 2026-08-14 09:05:23 
- List: virtualization
- Page: https://ratatoskr.run/virtualization/2026/08/17411734
- Thread: https://ratatoskr.run/linux-doc/2026/08/17399965/t.md

```text
On 12/08/2026 07:40, Shrikanth Hegde wrote:
> 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@gmail.com>
> Signed-off-by: Shrikanth Hegde <sshegde@linux.ibm.com>
> ---
FWIW, feel free to add my r-b to this patch

Reviewed-by: Mete Durlu <meted@linux.ibm.com>
```
