sched: Add helper kstat_cpu_softirqs_sum()
authorZhen Lei <thunder.leizhen@huawei.com>
Sat, 19 Nov 2022 09:25:04 +0000 (17:25 +0800)
committerPaul E. McKenney <paulmck@kernel.org>
Thu, 5 Jan 2023 20:19:56 +0000 (12:19 -0800)
commit3ca0a6ea8f6de0f21a9331ff3596a9c073fbdab0
tree4600604c19a83647318f3cfcbf0d8c89e57c3e33
parent47904aed898a08f028572b9b5a5cc101ddfb2d82
sched: Add helper kstat_cpu_softirqs_sum()

Add a kstat_cpu_softirqs_sum() function that is similar to
kstat_cpu_irqs_sum(), but which counts software interrupts since boot
on the specified CPU.

Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Cc: Josh Don <joshdon@google.com>
Cc: Tejun Heo <tj@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Reviewed-by: Frederic Weisbecker <frederic@kernel.org>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
include/linux/kernel_stat.h