]> www.infradead.org Git - users/willy/xarray.git/commit
sched: Move update_other_load_avgs() to kernel/sched/pelt.c
authorTejun Heo <tj@kernel.org>
Wed, 11 Sep 2024 19:36:43 +0000 (09:36 -1000)
committerTejun Heo <tj@kernel.org>
Thu, 12 Sep 2024 06:00:21 +0000 (20:00 -1000)
commit902d67a2d40f5b0815f4f627b26d91f96cc51fb3
tree61a58752d9f46772280f5208520e94a79b0eaece
parent0b1777f0fa045c561fd26c8fda61f5eb7a930ed3
sched: Move update_other_load_avgs() to kernel/sched/pelt.c

96fd6c65efc6 ("sched: Factor out update_other_load_avgs() from
__update_blocked_others()") added update_other_load_avgs() in
kernel/sched/syscalls.c right above effective_cpu_util(). This location
didn't fit that well in the first place, and with 5d871a63997f ("sched/fair:
Move effective_cpu_util() and effective_cpu_util() in fair.c") moving
effective_cpu_util() to kernel/sched/fair.c, it looks even more out of
place.

Relocate the function to kernel/sched/pelt.c where all its callees are.

No functional changes.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Ingo Molnar <mingo@redhat.com>
kernel/sched/pelt.c
kernel/sched/pelt.h
kernel/sched/sched.h
kernel/sched/syscalls.c