summaryrefslogtreecommitdiff
path: root/include/linux/bitmap.h
diff options
context:
space:
mode:
authorShrikanth Hegde <sshegde@linux.ibm.com>2026-09-28 11:07:16 +0530
committerPeter Zijlstra <peterz@infradead.org>2026-09-28 08:44:40 +0200
commita8d0854a76a876ea474e17322acb680716a09da2 (patch)
tree4ba3ddf8ecf961a473fe83cfd324ead73d6a59c9 /include/linux/bitmap.h
parentbe100c77178ef2299a080eb698720832a870248b (diff)
downloadlinux-next-a8d0854a76a876ea474e17322acb680716a09da2.tar.gz
linux-next-a8d0854a76a876ea474e17322acb680716a09da2.zip
sched/cputime: Add kcpustat_field_total helper
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. Number of cpus can be derived from cpumask_weight() where necessary. Suggested-by: Yury Norov <yury.norov@gmail.com> Signed-off-by: Shrikanth Hegde <sshegde@linux.ibm.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: Yury Norov <ynorov@nvidia.com> Reviewed-by: Mete Durlu <meted@linux.ibm.com> Acked-by: Frederic Weisbecker <frederic@kernel.org> Link: https://patch.msgid.link/20260928053728.797539-2-sshegde@linux.ibm.com
Diffstat (limited to 'include/linux/bitmap.h')
0 files changed, 0 insertions, 0 deletions