]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
sched/cputime: Remove superfluous and error prone kcpustat_field() parameter
authorFrederic Weisbecker <frederic@kernel.org>
Fri, 8 May 2026 13:16:35 +0000 (15:16 +0200)
committerThomas Gleixner <tglx@kernel.org>
Tue, 2 Jun 2026 19:27:25 +0000 (21:27 +0200)
commit080b5c6d95034e46f5ed1abe98c06218a1386aef
tree4df44d81d516b17903f5e0b9a7167df47aa70e4e
parent0236aaf07b406100c8c3a6b78dba211f32449f49
sched/cputime: Remove superfluous and error prone kcpustat_field() parameter

The first parameter to kcpustat_field() is a pointer to the cpu kcpustat to
be fetched from. This parameter is error prone because a copy to a kcpustat
could be passed by accident instead of the original one. Also the kcpustat
structure can already be retrieved with the help of the mandatory CPU
argument.

Remove the needless parameter.

Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Tested-by: Shrikanth Hegde <sshegde@linux.ibm.com>
Reviewed-by: Shrikanth Hegde <sshegde@linux.ibm.com>
Link: https://patch.msgid.link/20260508131647.43868-4-frederic@kernel.org
drivers/cpufreq/cpufreq_governor.c
drivers/macintosh/rack-meter.c
include/linux/kernel_stat.h
kernel/rcu/tree.c
kernel/rcu/tree_stall.h
kernel/sched/cputime.c